VideoBar

This content is not yet available over encrypted connections.

Tuesday, May 16, 2017

Draw Rain by mubin 2

#include<stdio.h>
main()
{
   int n;
   printf("Enter n: "); scanf("%d",&n);
   for(;;)
{


    for(int i=0;i<n;i++)
    {
       //_______descending
               for(int j=1;j<=n-i;j++)
        {
            printf(" ");
        }
        //quad rain
        for(int j=0;j<n;j++)
        {
            printf(",");
        }
                //quad space
        for(int j=0;j<(n/2);j++)
        {
            printf(" ");
        }
                //quad rain
        for(int j=0;j<n;j++)
        {
            printf(",");
        }
                //quad space
        for(int j=0;j<(n/2);j++)
        {
            printf(" ");
        }
                //quad
        for(int j=0;j<n;j++)
        {
            printf(",");
        }
                //quad space
        for(int j=0;j<(n/2);j++)
        {
            printf(" ");
        }
                //quad
        for(int j=0;j<n;j++)
        {
            printf(",");
        }
                //quad space
        for(int j=0;j<(n/2);j++)
        {
            printf(" ");
        }
                //quad
        for(int j=0;j<n;j++)
        {
            printf(",");
        }
                //quad space
        for(int j=0;j<(n/2);j++)
        {
            printf(" ");
        }
                //quad
        for(int j=0;j<n;j++)
        {
            printf(",");
        }

        //________________
        printf("\n");



    }
}

}










No comments:

Post a Comment