Using For Loop: To increment or decrement a variable by more than one number (correct the program so that the output is as shown: #include main() { int num; for (num = 1; num<=100; num+=20) /* increment */ { printf(""%d\n"",num); printf(""\n"");} for (num = 100; num>=1; num-=20) /* decrement */ printf(""%d\n"",num);}
Answers
Answered by
0
C has two exceptional unary administrators called increase (++) and decrement (- - ) administrators.
These administrators' addition and decrement estimation of a variable by 1.
Addition and decrement administrators must be utilized just with a variable not with constants or articulations.
The decrement administrator diminishes the estimation of its modifiable number juggling operand by 1.
Similar questions
Math,
7 months ago
Social Sciences,
7 months ago
Physics,
1 year ago
Biology,
1 year ago
Math,
1 year ago