Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that prints a multiplication table, like this: 1 2 3 4 5 6 7 8 9 10 2 4 6 8 10
Write a program that prints a multiplication table, like this:
1 2 3 4 5 6 7 8 9 10 2 4 6 8 10 12 14 16 18 20 . . . 8 16 24 32 40 48 56 64 72 80 9 18 27 36 45 54 63 72 81 90 10 20 30 40 50 60 70 80 90 100
Hint: You can nicely format your answer by forcing four digits per number:
System.out.print(String.format("%4d", ans));
The code must be in Java we use IntelliJ
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started