update,
This commit is contained in:
11
_resources/it114105/itp3914/Lab08/Q6fExtra.java
Normal file
11
_resources/it114105/itp3914/Lab08/Q6fExtra.java
Normal file
@@ -0,0 +1,11 @@
|
||||
public class Q6fExtra {
|
||||
public static void main(String[] args) {
|
||||
for(int i = 0; i < 5; i++){
|
||||
for(int s = 0; s < 4-i; s++)
|
||||
System.out.print(" ");
|
||||
for(int j = 5; j > 4-i; j--)
|
||||
System.out.print(" " + j);
|
||||
System.out.println();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user