fork download
  1. class Ideone
  2. {
  3. public static void main (String[] args) throws java.lang.Exception
  4. {
  5. for (int n = 0; n < 3600000; n += 60000) {
  6. System.out.println(n + ( n % 1800000 == 0 ? " <= Yes" : ""));
  7. }
  8. }
  9. }
Success #stdin #stdout 0.1s 320576KB
stdin
Standard input is empty
stdout
0 <= Yes
60000
120000
180000
240000
300000
360000
420000
480000
540000
600000
660000
720000
780000
840000
900000
960000
1020000
1080000
1140000
1200000
1260000
1320000
1380000
1440000
1500000
1560000
1620000
1680000
1740000
1800000 <= Yes
1860000
1920000
1980000
2040000
2100000
2160000
2220000
2280000
2340000
2400000
2460000
2520000
2580000
2640000
2700000
2760000
2820000
2880000
2940000
3000000
3060000
3120000
3180000
3240000
3300000
3360000
3420000
3480000
3540000