public class Main {
public static void main(String[] args) {
int x = 1;
int y = 0;
int z = 0;
while(z<5) {
x-=2;
y=(x+z)*2;
z++;
for (int n=1; n<5; n++) { System.out.print(x + "\t" + y + "\t" + z);
}
}
}
}
public class Main {
public static void main(String[] args) {
int x = 2;
int y = 8;
int z = -1;
while (z<0) { for(int n=1; n<7; n++){ System.out.println(x + "\t" + y + "\t" + z);}
x+=3;
y--;
}
}
}
public static void main(String[] args) {
int x = 1;
int y = 0;
int z = 0;
while(z<5) {
x-=2;
y=(x+z)*2;
z++;
for (int n=1; n<5; n++) { System.out.print(x + "\t" + y + "\t" + z);
}
}
}
}
public class Main {
public static void main(String[] args) {
int x = 5;
int y = 1;
int z = 0;
{
for (int n=1; n<7; n++) { System.out.println(x + "\t" + y + "\t" + z);
x-=1;
y+=1;
z=(x+y)*2;
}
while(x>0);
}
}
}
public class Main {
public static void main(String[] args) {
int x = 1;
int y = 2;
int z = 6;
for (x=1; x<5; x++) {
y=(x*4);
z++;
System.out.println(x + "\t" + y + "\t" + z);
}
}
}
public static void main(String[] args) {
int x = 2;
int y = 8;
int z = -1;
while (z<0) { for(int n=1; n<7; n++){ System.out.println(x + "\t" + y + "\t" + z);}
x+=3;
y--;
}
}
}
Комментариев нет:
Отправить комментарий