question archive Inside the main method, create a nested for loop that iterates through the numbers 1 to 12, multiplying them together and printing them out, with a tab between them

Inside the main method, create a nested for loop that iterates through the numbers 1 to 12, multiplying them together and printing them out, with a tab between them

Subject:Computer SciencePrice: Bought3

Inside the main method, create a nested for loop that iterates through the numbers 1 to 12, multiplying them together and printing them out, with a tab between them. Remember that to print out a tab, use t. 

As you are iterating through the for loops you want to check if the two numbers you are multiplying together are the same (i.e., 2x2 or 4x4). If they are, add an asterisk after the number, to highlight the fact that it is a square.

Remember that after printing out each line of the multiplication table, you will want to go to the next line. Pay attention to the difference between System.out.println(...) and System.out.print(...).

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE