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
______ is a certification program that recognizes sustainable building practices and strategies. Question 1 options: A) Brundtla
Pani-rosa [81]

Answer:

(C) LEED

Explanation:

LEED certification is a recognized worldwide as symbol of viability achievement.

(Leadership in Energy and Environmental Design(LEED):- It is the most popular and widely used rating system in the world for green buildings. Available for almost all building project types, including new constructions to interior fit-outs.

8 0
4 years ago
Which word processing tool can help you find synonyms to improve your word choice?
deff fn [24]
Grammarly is the answer
6 0
4 years ago
Read 2 more answers
1. Target area range is a survey of what lies about __________ seconds ahead of the vehicle. A. 5-10 B. 10-20 C. 20-30 D. 40-50
pshichka [43]

Answer:

Target area range is a survey of what lies about 12-20 seconds ahead of the vehicle. Correct Answer is B. (10-20 second)

Explanation:

Target area range is the space between your vehicle and the target area. A target area is an area on the roadway where the target is located. A target can be anything such as a car, a traffic signal, a blackhead, etc.

Target area range is also a section of roadway where the target is located and the area to the left and right of the target area

4 0
4 years ago
Read 2 more answers
Caden, Jacob, Lucas, and Michael, whose last names are Armstrong, Boothe, Gardner, and Robinson, live in four houses in a row.
Anit [1.1K]

Answer:

Jacob Gardner - Lucas Robinson - Caden Boothe - Michael Armstrong

Explanation:

According to clue 4, Lucas's house is not the first, and he has a house on his right, so it can only be house 2 or house 3. Therefore, Caden's house (which is on the right right of Lucas's), it can only be house 3 or house 4.

In turn, track 1 says that Michael's house is not next to Lucas's, so it can be 1 (if Lucas's house is 3) or 4 (if Lucas's house is in 2).

Track 2 says that there is a house before Michael's, which eliminates the possibility that Michael's house is number 1 (there would be no previous house). Thus, in addition, Lucas's house turns out to be 2 (Michael's house is not next door) and Caden's is 3, while Jacon's is house 1.

Jacob - Lucas - Caden - Michael

In turn, regarding surnames, clue 2 says that Robinson's house is after Gardner's and before Michael's. Thus, Robinson can be the last name of Jacob or Lucas, and Gardner that of Lucas or Caden. Now, since Boothe's house is just before Armstrong's, the order would be as follows:

Jacob Gardner - Lucas Robinson - Caden Boothe - Michael Armstrong

4 0
3 years ago
Complete the missing part of the line to allow you to read the contents of the file.
Firlakuza [10]

Answer: Sorry I’m late but the answer is open

Explanation: Edge 2021

3 0
3 years ago
Read 2 more answers
Other questions:
  • A bug collector collects bugs every day for 5 days. Write a program that keeps a running total of the number of bugs collected d
    12·1 answer
  • Online library catalogs can direct you to your closest library. (1 point)<br> True<br> False
    8·1 answer
  • Which of the following would be an example of a loss of record integrity in a
    12·1 answer
  • Lesley wants to develop web pages. Which of these programming languages is useful in the context of web design?
    14·1 answer
  • Which of these is an expansion slot type?
    5·1 answer
  • Hi, I am from India. Our brainly platform isn't so good, many of 'em keep spamming questions that I ask. US platform seems much
    9·1 answer
  • What is a method that deletes an item from a list using the item’s value?
    11·1 answer
  • Guys, please help me asap (Photo Attached) !!!!!!! HELP 25pts!!!!
    14·2 answers
  • ______________ are used to store information that will be referenced and manipulated in a computer program. They label data with
    6·1 answer
  • Why are pirated software considered a threat?​
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!