JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
public class Program {
public static void main(String[] args) {
//If --x and x-- are different
// arguments, then why do they
// appear to yeild the same
// output when ran in
// Code Playground?
int x = 3;
while(x > 0) {
System.out.println(x);
x--;
}
int y = 3;
while(y > 0) {
System.out.println(y);
--y;
}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run