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