Computer Science, asked by jtydcsm, 1 year ago

How to print the pattern 12345 1234 123 12 1 from right side in Java?

Answers

Answered by abhay7354
1
CLASS PROGRAM
{
public static void()
{
System.out.println (" 12345");
System.out.println (" 1234");
System.out.println (" 123");
System.out.println (" 12");
System.out.println (" 1");
}

}

abhay7354: hope this works
abhay7354: if this works then plz mark me the brainliest
jtydcsm: This won't work. If user's choice will be given then how will I do?
abhay7354: what will user enter
Similar questions