1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Viktor [21]
3 years ago
14

Read three numbers from user input. Then, print the product of those numbers. Ex: If input is 2 3 5, output is 30. Note: Our sys

tem will run your program several times, automatically providing different input values each time, to ensure your program works for any input values. (note I am using python language)
Computers and Technology
1 answer:
Murrr4er [49]3 years ago
8 0

Answer:

This is written in Python 3. And I am assuming that since the output is "30", which is derived from the inputs 2, 3, and 5, these three are multiplied to get the final output.

<em>fnum = int(input('Enter first number: '))</em>

<em>snum = int(input('Enter second number: '))</em>

<em>tnum = int(input('Enter third number: '))</em>

<em />

<em>output = (fnum * snum) * tnum</em>

<em>print ("The output is:", output)</em>

Explanation:

For the first three lines, we ask the user to input 3 numbers. At the same time, we are also converting these inputs into int type.  

  • fnum = int(input('Enter first number: '))
  • snum = int(input('Enter second number: '))
  • tnum = int(input('Enter third number: '))

The breakdown here is as follows:

  • fnum, snum, and tnum are user-defined variables which will hold the user's inputs.
  • int() is needed to define that everything inside it is an integer. If we don't first convert the input to integers, we will receive an error during multiplication saying that we cannot multiply non-int type variables. You can also choose to use Float here instead of Int - in which case, it will be float().
  • input('Enter first number:' )) - this is the part where we ask the user to enter the number they want.

Put together, it looks like this:

<em>variable = int(input('Your Custom Text Here: '))</em>

<em />

The next block would be:

  • output = (fnum * snum) * tnum

This is where we multiply the first, second, and third number to get to the output.

Finally, we print it with:

  • print ("The output is:", output)

Concatenating a string and variable looks like this.

print("text here", output) - when concatenating a string and a variable, simply add a comma after the quotation marks of the string.

You might be interested in
Select the correct answer.
ValentinkaMS [17]

Answer: typing keys

Explanation: it’s obvious...

8 0
4 years ago
Which of the following can a cell contain?
vredina [299]
I think it could be All of these.....
5 0
3 years ago
Read 2 more answers
If I add a # symbol in front of the cells row/column, it will keep the value true.
Ratling [72]

Answer:

Explanation:true

False

True

False=SUM(A1*A6)

8 0
3 years ago
[PROGRAMMING] A ____ signal indicates that a specific amount of time should pass before an action starts.
Inessa [10]
A time signal will do that, I believe!
5 0
3 years ago
A network is a group of two or more computers or devices connected together. To be able to connect, they each need a
Kay [80]
D. Internet service protocol (isp)
6 0
3 years ago
Read 2 more answers
Other questions:
  • Which type of color mixing do painters with a real brush and paints use?
    5·1 answer
  • Perception is a simple process.
    11·2 answers
  • _____ are skilled computer users who try to gain unauthorized access to other people’s computers.
    15·1 answer
  • Part cost Calculator Modify the GUI in your program to look like the following GUI. To do that you need to add the following to
    13·1 answer
  • The carbon-14 isotope is important because it allows scientists to determine the ___________ of an organic sample.
    14·1 answer
  • There are three main components to economic growth. Which of the following is NOT a component of economic growth?
    7·1 answer
  • How much heat is needed to raise the temperature of 7g of water by 15oC?
    6·1 answer
  • _KOH + _Cu(CIO3)2 - __KCIO3 +<br>_Cu(OH)2​
    12·1 answer
  • Jim wants to shoot a video. This requires him to move from one place to another. Which type of camera support should Jim use?
    13·1 answer
  • When determining the statement of purpose for a database design, what is the most important question to ask?
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!