Java Programing
Pages
Home
Projects
Tricks
Contact Us
About Us
Thursday, September 10, 2015
Program to print Pattern decreasing order
class Pattern2
{
public static void main(String arg[])
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=5;j>=i;j--)
{
System.out.print(j);
}
System.out.println();
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment