This program asks the user for three numbers. The program then prints out their product, that is, the numbers multiplied by each other. There is, however, something wrong with the program - it doesn't work quite right, as you can see if you run it. Please fix it. An example of the expected execution of the program: Please type in the first number: 2 Please type in the second number: 3 Please type in the third number: 5 The product is 30 Sample output

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 5GZ
icon
Related questions
Question
This program asks the user for three numbers. The program then prints out their
product, that is, the numbers multiplied by each other. There is, however, something
wrong with the program - it doesn't work quite right, as you can see if you run it.
Please fix it.
An example of the expected execution of the program:
Please type in the first number: 2
Please type in the second number: 3
Please type in the third number: 5
The product is 30
1
2
Sample output
Transcribed Image Text:This program asks the user for three numbers. The program then prints out their product, that is, the numbers multiplied by each other. There is, however, something wrong with the program - it doesn't work quite right, as you can see if you run it. Please fix it. An example of the expected execution of the program: Please type in the first number: 2 Please type in the second number: 3 Please type in the third number: 5 The product is 30 1 2 Sample output
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT