Java program - Display pattern like right angle triangle with a numbers
Coding River
Java program - Display pattern like right angle triangle with a numbers
import java.util.Scanner; public class TestApp {
public static void main(String[] args)
{ int nbre_rows, i , j; System.out.print("Input number of rows : "); Scanner in = new Scanner(System.in); nbre_rows = console.nextInt();
for(i=1;i less than or equal to nbre_rows; i++) { for(j=1 ; j less than or equal to i ; j++) System.out.print(j);
System.out.println("");
}
} }
I am trying to grow my channel, so if you find this video useful, please Subscribe and hit the notification bell :)
Thanks for watching and I hope you liked and learned something new !!!!!
#codingriver #javatrianglepatternprogram #javaforloopprograms ... https://www.youtube.com/watch?v=A51uiKNirOc
10151643 Bytes