HAY THANK FOR VISIT
Question:-write a program to print the pattern given below:-
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
class Pat2
{
void main()
{
for(int i=5;i>=1;i--)
{
for(int j=5;j>=i;j--)
System.out.printl(j);
System.out.println();
}
}
}
Thanks for visit Keep Supporting.
Question:-write a program to print the pattern given below:-
5 4 3 2 1
5 4 3 2
5 4 3
5 4
5
class Pat2
{
void main()
{
for(int i=5;i>=1;i--)
{
for(int j=5;j>=i;j--)
System.out.printl(j);
System.out.println();
}
}
}
Thanks for visit Keep Supporting.
No comments:
Post a Comment
HAY THAKYOU FOE VISIT