write a program in java to print the following series .Please . It's urgent
Attachments:

Answers
Answered by
0
import java.util.*;
class print
{
public static void main(String args[ ] )
{
Scanner in= new Scanner (System.in);
System.out.println("4 3 2 1 ");
System.out.println("4 3 2");
System.out.println("4 3 ");
System.out.println("4 ");
}
}
class print
{
public static void main(String args[ ] )
{
Scanner in= new Scanner (System.in);
System.out.println("4 3 2 1 ");
System.out.println("4 3 2");
System.out.println("4 3 ");
System.out.println("4 ");
}
}
kritika2727:
It's wrong .
Answered by
5
class Brainly
{
public static void main(String args[])
{
int i,j;
for(i = 1; i<=4; i++)
{
for(j = 4; j >= i; j--)
{
System.out.print(j+" ");
}
System.out.println();
}
}
}
Hope this helps!
{
public static void main(String args[])
{
int i,j;
for(i = 1; i<=4; i++)
{
for(j = 4; j >= i; j--)
{
System.out.print(j+" ");
}
System.out.println();
}
}
}
Hope this helps!
Attachments:

Similar questions
Computer Science,
9 months ago
Chemistry,
9 months ago
Math,
9 months ago
Physics,
1 year ago
Political Science,
1 year ago
Math,
1 year ago
English,
1 year ago