Friday, 3 February 2017

Number Triangle C Language

Number Triangle C Language Code

/*   ################################
     Girfa Student Help
     Number Trianle
     for more visit : http://girfahelp.blogspot.in/p/c-language.html
     ################################

*/
#include<stdio.h>
void main()
{
     int i,j;
     i=1;
     while(i<5)
     {
           j=1;
           while(j<=i)
           {
                printf("%d",j);
                j++;
           }
           printf("\n");
           i++;
     }
     printf("\nFor Loop Implementation\n");
     for(i=1;i<5;i++)
     {
           for(j=1;j<=i;j++)
                printf("%d",j);
           printf("\n");
     }

}


No comments:

Post a Comment