Created
November 26, 2012 04:34
-
-
Save anonymous/4146629 to your computer and use it in GitHub Desktop.
c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Question2 | |
{ | |
public static void main(String [] args) | |
{ | |
final int MAX_ROWS = 6; | |
int printedNum = 1; | |
for (int row = 1; row <= MAX_ROWS; row++) | |
{ | |
for (int num = 1; num <= 6; num++) | |
System.out.print(printedNum + "\t"); | |
printedNum++; | |
System.out.println(""); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment