Spaces:
Running
Running
File size: 260 Bytes
cd839d2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Arrange the lines of the program in such an order that the program prints the numbers 1...16 below in three steps.
public static void main(String[] args){
int num;
num = 1;
while (num < 18){
System.out.println(num);
num = num + 3;
}
}
|