|
|
| P is for Practical | |
| PerlMonks |
Re^3: do while loopsby Anonymous Monk |
| on Jan 08, 2008 at 13:06 UTC ( #661076=note: print w/ replies, xml ) | Need Help?? |
|
sum = 0; for (x = 1; x <= 5; x++) { printf("%d", x); sum = sum + x; printf("The sum is %d", sum); }
In Section
Tutorials
|
|
||||||||||||||||||||||