Write a program in Java to generate and print the following pattern using nested for loop:
5 * 4 * 3 * 2 * 1*
4*3*2*1 *
3 * 2 * 1 *
2* 1 *
1*
Answers
Answered by
2
Answer:
for(int i=1;i<=5;i++)
{
System.out.println(i"*")
}
Explanation:
i think it is a correct one
Similar questions