Professional Documents
Culture Documents
Outline
For Loop
Increment & Decrement Operators
Outcome
Write programs using for Loop.
Handle the Increment and Decrement operators with the for loop
Decrement Operator
Post decrement operator pre decrement operator
ii. *****
****
***
**
*
iii. 666666
55555
4444
333
22
1
7. Write a program by using for loop to compute the sum of
1+2+3+ . . . +n (n should be a keyboard input)