Sign In
Ask Question
Zechariah
Computers & Technology
20 January, 08:58
How to make a multiplication table in java
+4
Answers (
1
)
Nicholas Weiss
20 January, 09:18
0
Use nested loops. Here is the basic structure for one that goes up to 9. You can change the limit with user input which I assume you know how to do.
public static void main (String[] args)
{
int baseNum=1;
int multNum=1;
int numBorder=1;
System. out. println (" 1 2 3 4 5 6 7 8 9");
while (baseNum<=9)
{
System. out. print (numBorder);
while (multNum<=9)
{
System. out. print (" "+baseNum*multNum);
multNum++;
}
System. out. print ("/n");
numBorder++;
baseNum++;
multNum=1;
}
}
Comment
Complaint
Link
Know the Answer?
Answer
Not Sure About the Answer?
Find an answer to your question 👍
“How to make a multiplication table in java ...”
in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers
You Might be Interested in
Suppose that you want to encrypt a single message M ∈ {0, 1, 2} using a random shared key K ∈ {0, 1, 2}. Suppose you do this by representing K and M using two bits (00, 01, or 10), and then XORing the two representations.
Answers (1)
For a windows labtop what is the best way to save power when the computer will not be used for an extended period
Answers (1)
What is the function of a computer screen?
Answers (1)
Which of the following question u should ask your boss regarding individual performance evaluations
Answers (2)
What is the difference between grid computing, beowulf clusters, and blade computing?
Answers (1)
New Questions in Computers & Technology
Write a program to calculate the area of a triangle whose base is 10cm and height is 6cm
Answers (1)
This type of brake fade is caused by the brake fluid becoming so hot that it boils:a. Fluid fade b. Hydraulic fade c. Heat fade d. Water fade
Answers (1)
Recall that with the CSMA/CD protocol, the adapter waits K. 512 bit times after a collision, where K is drawn randomly. a.
Answers (1)
The data selected to create a table must include
Answers (1)
A new computer virus can enter the system through email or through the internet. There is a 30 % chance of receiving this virus through email. There is a 40 % chance of receiving it through the internet.
Answers (1)
Home
»
Computers & Technology
» How to make a multiplication table in java
Sign In
Sign Up
Forgot Password?