Java Programing
Pages
Home
Projects
Tricks
Contact Us
About Us
Thursday, September 10, 2015
Program to print Pattern
public class Pattern1
{
public static void main(String args[])
{
int i,j;
for(i=1;i<=5;i++)
{
for(j=1;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