Computer Science, asked by dishant4, 1 year ago

print this pattern. 54321 5432 543 54 51


Ankitasara: I am not understanding your question
siddhartharao77: public class Print
{

public static void main( String args[])
{
int a, b;


for(a=1; a<=5; a++)
{

for(b=5; b>=a; b--)
{
System.out.print(b);

}

System.out.println();

} }


}
Ankitasara: What are you saying I am not understanding

Answers

Answered by AK23
2
if you have printer then print it
Answered by siddhartharao77
4
Following are the programs to print the pattern :
Attachments:

dishant4: have you run the program
siddhartharao77: Yes.
Similar questions