Write a program in java to print the following pattern with comments and variable description
12345
1234
123
12
1
Answers
Answered by
0
Answer:
class Pattern
{
public static void main(String args[])
{
for(int i=5;i>=1;i=i-2)
{
for(int j=1;j<=i;j++)
{
System.out.println(b);
{
System.out.println("");
}
}
Explanation:
Similar questions
Math,
6 months ago
CBSE BOARD X,
6 months ago
Math,
6 months ago
Political Science,
11 months ago
Math,
11 months ago
Biology,
1 year ago
English,
1 year ago