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

We Live In A Simulation

 You read that title right. We live in a simulation. Nothing is real. It's as real as you want it to be. But that doesn't mean it...