0

Incremental & decremental operators with while loop

How can one use a while loop with either decrement/ incremental operators? Maybe a sample code will do.

12th Jan 2019, 11:18 PM
Kenneth Ouma
Kenneth Ouma - avatar
4 Antworten
13th Jan 2019, 2:01 AM
Lambda_Driver
Lambda_Driver - avatar
+ 2
yes Denise
12th Jan 2019, 11:45 PM
Kenneth Ouma
Kenneth Ouma - avatar
+ 1
Do you mean something like this? While (i > 0){ //do something i--; } While (i < 100){ //do something i++; }
12th Jan 2019, 11:33 PM
Denise Roßberg
Denise Roßberg - avatar
+ 1
Lambda_driver, spot on sir
13th Jan 2019, 8:33 AM
Kenneth Ouma
Kenneth Ouma - avatar