Computer Science, asked by TbiaSamishta, 1 year ago

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 Sidyandex
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