Computer Science, asked by Shrieya, 1 year ago

Write a java program to print following pattern--
12345

1234

123

12

1


Shrieya: Pls tell me it's coding

Answers

Answered by siddhartharao77
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!
Attachments:

siddhartharao77: Gud luck!
Shrieya: Thanks a lot
siddhartharao77: if u like my answer, Rate it by clicking on stars. Thanks
Answered by pmurugan
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