public
anonymous / gist:4146629
Created

c

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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("");
}
}
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.