Code Scrappers


Inverted Pyramid C program


              #include<stdio.h>
              #include<stdlib.h>

              void main()
              {
                  int i, j;

                  char c = '#';

                 for (i = 6; i >= 0; i--)
                 {
                      printf("\n");

                      for (j = 0; j < i; j++)
                      {
                          printf("%c", c);
                      }
                 }
              }



          



Output

      ######
      #####
      ####
      ###
      ##
      #