So to print the numbers from 1 to 10 we write a simple for loop from i=1 to i<=10 and expect to see the numbers 1 2 3.. 10 printed out. I was curious what happens if I add extra zeros to the condition like so:
for(int i=000000; i<000010; i++){
System.out.println(i)
}
The output I got was
0
1
2
3
4
5
6
7
Why are these numbers being printed?