Computer Science, asked by shrutiagrawal804, 1 year ago

Write a program to print this pattern.
* * * * 1
* * * 2
* * 3
* 4
5

Answers

Answered by nishant5613
0

Answer:

****6

***7

**8

*9

10

Explanation:

pattern

Answered by manas3379
1

Answer:

class Pattern {

public static void main

(String[]args) {

for(int i = 1; i<=5; i++) {

for(int j = 5 - i; j>=1; j - -) {

System.out.print("*");

}

System.out.print(i);

System.out.println();

}

}

}

Hope it helps.

Mark me brainliest.

Similar questions