Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Main {
  public static void main(String[] args) {
	
	int n = 4;
	int i, j, k;

	for (i = 1; i <= n; i++){	
		for (j = 1; j <= (n-i); j++) {
			System.out.print(" ");
		}
		
		for (k = 1; k <= (i-j); k++) {
			// bhenchod ye tu chal rha hai
			System.out.println("ran");
			System.out.print(i);
		}
		
		System.out.println();

		}
  }
}