Skip to content

Instantly share code, notes, and snippets.

Created November 26, 2012 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4146629 to your computer and use it in GitHub Desktop.
Save anonymous/4146629 to your computer and use it in GitHub Desktop.
c
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