From abbf8a7794a52d4184db05ddbac3b187e7feacd3 Mon Sep 17 00:00:00 2001 From: dadgam3er Date: Sat, 7 Sep 2024 23:47:08 -0400 Subject: [PATCH] BismiALLAH --- NestedLoop.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NestedLoop.java b/NestedLoop.java index 61a79e0..94a0802 100644 --- a/NestedLoop.java +++ b/NestedLoop.java @@ -1,12 +1,14 @@ public class NestedLoop { public static void main(String[] args) { int x = 1; - for (int i = 0; i < 3; i++) { + for (int i = 0; i < 4; i++) { System.out.println(""); for (int k = 1; k <= 4 - i; k++) { System.out.print(x); + System.out.print("\t"); x++; } + System.out.println(""); } } }