0
Can anyone please explain why this code does not produce output
public class Program { public static void main(String[] args) { for(int x = 20; x <=10; x--) { System.out.println(x); } } }
1 Respuesta
+ 2
x=20 and is higher than 10, so x<=10 is false, try x>=10