Write a program to print this pattern.
* * * * 1
* * * 2
* * 3
* 4
5
Answers
Answered by
0
Answer:
****6
***7
**8
*9
10
Explanation:
pattern
Answered by
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