LED PANEL

Google It, You'll Get It.

Monday, January 31, 2011

using nested for loops to built a numeric triangle

o:
1
22
333
4444
----------------------

#include<'stdio.h'>
main()
{

for(int loop=1; loop<=4;loop++)
{
for(int j=0; j {
printf("%d",loop);
}
printf("\n");
}

}

No comments:

Post a Comment