From 93085df541e0620bfb8c59d3da9888f999ce6d0c Mon Sep 17 00:00:00 2001 From: noobProgrammer112 <106610026+noobProgrammer112@users.noreply.github.com> Date: Tue, 31 May 2022 20:41:38 +0530 Subject: [PATCH] Update InvertedTriangleNum.java The previous code was giving wrong output --- .../InvertedTriangleNum.java | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/Course 1 - Introduction to JAVA/Lecture 6 - Patterns 2/InvertedTriangleNum.java b/Course 1 - Introduction to JAVA/Lecture 6 - Patterns 2/InvertedTriangleNum.java index a8f4796..6f4835d 100644 --- a/Course 1 - Introduction to JAVA/Lecture 6 - Patterns 2/InvertedTriangleNum.java +++ b/Course 1 - Introduction to JAVA/Lecture 6 - Patterns 2/InvertedTriangleNum.java @@ -37,26 +37,16 @@ Integer N (Total no. of rows) import java.util.*; -public class InvertedTriangleNum { +public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int N=scan.nextInt(); - for (int i=0;i0; i--){ + for(int j=0; j