/* ################################
Girfa Student Help
Reverse Number Trianle
for more visit :
http://girfahelp.blogspot.in/p/c-language.html
################################
*/
#include<stdio.h>
void main()
{
int i,j;
i=5;
while(i>0)
{
j=i;
while(j>0)
{
printf("%d",j);
j--;
}
printf("\n");
i--;
}
printf("\nFor Loop
Implementation\n");
for(i=5;i>0;i--)
{
for(j=i;j>0;j--)
printf("%d",j);
printf("\n");
}
}
No comments:
Post a Comment