Delicious Digg Facebook Favorites More Stumbleupon Twitter

Thursday 30 August 2012

Reverse floyds triangle


         Reverse floyds triangle :-


       #include<stdio.h>
       main()
      {

       int i,j,k;
       i=7;
       for(j=3;j>=0;j--)
      {
       for(k=0;k<=j;k++)
      {
       printf("%d ",(i+k));
      }
       i=i-j;
       printf("\n");
      }
      getch();

      }

0 comments:

Post a Comment