Computer Science, asked by Utsab11, 1 year ago

can any one solve this program by the method of java - 5,4,3,2,1,2,3,4,5.

Answers

Answered by Khalidbinamir0408
2

class brainly
{
public static void main()
{
for(int i=5;i<=1;i--)
{
System. out. print(i) ;
}
for (int j=2;j<=5;j++)
{
System. out. print(j) ;
}
}
}
Similar questions