Write a java program to print following pattern--
12345
1234
123
12
1
Shrieya:
Pls tell me it's coding
Answers
Answered by
42
class Brainly
{
public static void main(String args[])
{
for(int i = 5; i>=1; i--)
{
for(int j=1; j<=i; j++)
System.out.print(j);
System.out.println();
}
}
}
Hope this helps!
{
public static void main(String args[])
{
for(int i = 5; i>=1; i--)
{
for(int j=1; j<=i; j++)
System.out.print(j);
System.out.println();
}
}
}
Hope this helps!
Attachments:
Answered by
9
Answer:
it's the correct answer please mark my answer as brainliest answer and follow me please I will follow you
Attachments:
Similar questions
English,
7 months ago
Math,
7 months ago
Social Sciences,
1 year ago
Psychology,
1 year ago
English,
1 year ago