1 public class DominatorExample { 2 3 public static void main (String [] args){ 4 5 int x = 9; 6 7 for (int i = 9; i < 10; i++){ 8 x++; 9 } 10 11 for (;;){ 12 if (x < 4) break; 13 x--; 14 } 15 16 do { 17 x += 2; 18 }while(x < 15); 19 20 while (x > 10){ 21 x -= 3; 22 } 23 24 while (true){ 25 if (x > 47) break; 26 x *= 3; 27 } 28 29 while (x > 4) { 30 x--; 31 if (x % 3 != 0) continue; 32 System.out.println(x); 33 } 34 35 int [] arr = new int[9]; 36 for (int m = 0; m < 10; m++){ 37 x = 4; 38 arr[4] = 8; 39 arr[4] = m; 40 arr[x] = 8; 41 } 42 } 43 } 44 | Popular Tags |