Sample Codes for creating programs
Sunday, February 24, 2013
Sample For Loop 5
public class sample {
public static void main(String[] args) {
for(int i=1; i<=5; i++)
{
for(int j=i; j<=i+5; 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