Create a gist now

Instantly share code, notes, and snippets.

anonymous /gist:4146629
Created Nov 26, 2012

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