Friday, October 29, 2021

Multiplication Table in Java

Nested for loops.


for (int i = 1; i <=12; i++) {
for (int j = 1; j <= 12; j++) {
System.out.printf("%d * %d = %d\n", i, j, i*j);
}
}

No comments:

Post a Comment

A Placebo?

 At times I wonder if my medication is just a placebo. That is a medication that usually has no effect on a disease. Am I dreaming it all up...