Question: java for loop produce the multiplication table 1-9. Consider using integer division and modulus: For integers a and b, a/b and a%b return the quotient
java for loop
produce the multiplication table 1-9. Consider using integer division and modulus: For integers a and b, a/b and a%b return the quotient and the remainder, respectively, when a is divided by b.
public static void main(String[] args) { for (int i = 1; i <= 9; i++) for (int j = 1; j <= 9; j++) System.out.println(i + " * " + j + " = " + i * j); for (int i = 0; i < 81; i++) // TODO Modify the following to produce the same multiplication table as above. System.out.println((i) + " * " + (i) + " = " + (i)); } Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
