import java.util.Scanner;
class grid3 {
public static void main(String[]args){
Scanner scanner = new Scanner(System.in);
int x = 10;
while (x >= 1) {
//
int y = x;
while ( x >= x - 6) {
System.out.println( y + "t");
y = y - 2;
}
System.out.println();
x = x - 1;
}
scanner.close();
}
}

123

  • 1.
    import java.util.Scanner; class grid3{ public static void main(String[]args){ Scanner scanner = new Scanner(System.in); int x = 10; while (x >= 1) { // int y = x; while ( x >= x - 6) { System.out.println( y + "t"); y = y - 2; } System.out.println(); x = x - 1; } scanner.close(); } }