+ 2

How can one be able to loop a number e.g 100 to 0 using c++

26th Feb 2018, 6:43 PM
Erick Kariuki Kanyoro
Erick Kariuki Kanyoro - avatar
3 Answers
+ 13
by putting a check condition in for loop
26th Feb 2018, 7:06 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
like this for(x=100;x>0;x--)
26th Feb 2018, 6:48 PM
K.F
K.F - avatar
26th Feb 2018, 8:52 PM
Mark Rozenfeld
Mark Rozenfeld - avatar