0

Can you give a example program that use for do?

output 20 down to 2

10th Jan 2017, 1:18 PM
Junrill Galvez
Junrill Galvez - avatar
1 Answer
0
for(int i = 20; i >0; i +=2){ System.out.println(i); } Something like this?
10th Jan 2017, 1:24 PM
Andreas K
Andreas K - avatar