Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * ForNestedPractice
- */
- public class ForNestedPractice {
- public static void main(String[] args) {
- for (int i = 1; i <= 6; i++) {
- for (int z = 0; z < i; z++) {
- System.out.print(" ");
- }
- for (int y = 6; y > i; y--) {
- System.out.print(i);
- // System.out.print(y);
- }
- System.out.println("");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement