/* ################################
Girfa Student Help
Reverse triangle
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("*");
j--;
}
printf("\n");
i--;
}
printf("\nFor Loop
Implementation\n");
for(i=5;i>0;i--)
{
for(j=i;j>0;j--)
{
printf("*");
}
printf("\n");
}
}
No comments:
Post a Comment