Advertisement
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 firstMultiplier = 1; firstMultiplier <= 10; firstMultiplier++) {
- for (int secondMultiplier = 1; secondMultiplier <= 10 ; secondMultiplier++) {
- System.out.printf("%d * %d = %d%n", firstMultiplier, secondMultiplier, firstMultiplier * secondMultiplier );
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement