int m; for (m = 1; m < 15; m *= 2);
int m; for (m = 1; m < 12; m += 7);
int m; for (m = 35; m > 10; m = m / 2);
for (int i = 0; i < 10; i += 3){ System.out.print(i + "-");}
for( ;i<10; )
for (int i = 0; i < 10; i+ ) System.out.println(i);
for (;;)
int i = 2; for (i; i < 10; i++)
for (double x = 0.; x <= 1.; x += .01 ) System.out.println(x);
for (int i = 0; i < 30; i += 10) { for (int j = 0; j < 3; j++) { System.out.print(i + j + " "); } }
for (int j = 10; j <= 1000; j *= 10) { for (int i = -1; i <= 1; i++ ) { System.out.print(i + j + " "); } }
for (int j = 1; j < 10; j++) { System.out.print(j % 2); }
int v = 1; for (int n = 2; n < 10; n += 2 ) { System.out.print(v * n + " "); v *= -1; }
// Beispiel mit ?-Operator statt if - else for (int n = 1; n <= 6; n++ ) { System.out.print((n % 2 == 0)? "*" : "=") ; }
for (int n = 8; n < 12; ++n ) { System.out.print(((n<10)? "_" : "") + n + " ") ; }
for (int i = 2, j = -1; i < 5; i++, j-- ) { System.out.print(i * j + " "); }
for (int i = 0; i <= 2; i++ ) { for (int j = 0; j <= i; j++ ) { System.out.print("*"); } System.out.print(" "); }
convertertmp | Dec 02, 18:49 |
Jun 18, 09:15 | |
atest/erben | May 02, 10:37 |
atest/oop2 | Apr 18, 10:30 |
thm/Studium | Mar 30, 11:58 |
atest/oop1 | Mar 30, 11:57 |