Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package nestedLoops;
- public class P02MultiplicationTable {
- public static void main(String[] args) {
- for (int i = 1; i <= 10; i++) {
- for (int j = 1; j <= 10; j++) {
- int result = i * j;
- System.out.printf("%d * %d = %d%n", i, j, result);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment