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
OLga [1]
3 years ago
15

Write a program that takes three numbers as input from the user, and prints the largest.

Computers and Technology
1 answer:
nasty-shy [4]3 years ago
6 0

Answer:

Written in Python:

num1 = int(input("Enter a number: "))

num2 = int(input("Enter a number: "))

num3 = int(input("Enter a number: "))

if(num1 >= num3 and num1 >= num2):

    print("Largest: "+str(num1))

elif(num2 >= num3 and num2 >= num1):

    print("Largest: "+str(num2))

else:

    print("Largest: "+str(num3))

Explanation:

The next three lines prompt user for input of three numbers

<em>num1 = int(input("Enter a number: "))</em>

<em>num2 = int(input("Enter a number: "))</em>

<em>num3 = int(input("Enter a number: "))</em>

This following if condition checks if num1 is the largest

<em>if(num1 >= num3 and num1 >= num2):</em>

<em>     print("Largest: "+str(num1))</em>

This following if condition checks if num2 is the largest

<em>elif(num2 >= num3 and num2 >= num1):</em>

<em>     print("Largest: "+str(num2))</em>

The last condition assumes num3 is the largest if the previous conditions are false

<em>else:</em>

<em>     print("Largest: "+str(num3))</em>

<em></em>

You might be interested in
How to prevent water pollution​
loris [4]

Answer:

Here is your answer

Explanation:

1. pick up litter and throw it away in a garbage can.

2. use environmentally household products such as washing powder, household cleaning agents

3. wash your car or outdoor equipment where it can flow to a gravel or grassed area instead of a street.

4. don't throw waste at ocean it will harm the animals and create tocsin.

6 0
3 years ago
Jack's manager asks him to distribute information and an attachment as quickly as possible to all their clients. In one to two s
snow_tiger [21]

Jack must use electronic communication or e-mail to distribute information and an attachment as quickly as possible to all their clients.  In 1–2 sentences, describe what Jack should do. In this way, he can also retain a hard copy of the memo as well as the attachments used for future reference. 



8 0
3 years ago
How would our lives be different without computers at home?
Yuri [45]

Answer:

It would be so difficult to spend a life without computers. We would not be aware of technology or what things are being discovered. We could get information by newspaper, television, radio or some other medium but on computers.

Explanation:

Thanks for the points have a good day <3

8 0
3 years ago
An event or action that causes the task to start is called a
Vikentia [17]

Answer:

Trigger

Explanation:

The process through which an event or an action causes the task to start is called triggering. It is being extensively used in different subjects related to computer programming. And like we create a trigger in DBMS, to trigger some event like showing the output of some queries. And we do have the trigger used by various software as well, and which are built in various programming languages, and various platforms.

5 0
4 years ago
Based on a kc value of 0.150 and the data table given, what are the equilibrium concentrations of xy, x, and y, respectively?
lidiya [134]

If the solution process is endothermic, then an increase in temperature usually results in an increase in solubility. Their heat of reaction is usually positive. The rest of the choices do not answer the question above.

4 0
3 years ago
Other questions:
  • ________ is an open-source program supported by the Apache Foundation that manages thousands of computers and implements MapRedu
    5·1 answer
  • _______ is a form of crime that targets a computer system to acquire information stored on that computer system, to control the
    15·1 answer
  • PLEASE HELP ASAP
    13·2 answers
  • When should you create an outline?
    11·1 answer
  • Can someone please help me to point out what's wrong with this C program:
    13·1 answer
  • Fiber optic cables transfer data at the speed of light, so they have the __________ latency. This results in the ________ connec
    13·1 answer
  • 1. Which of the following is not true about high-level programming language s? (a) Easy to read and write (b) Popular among prog
    12·1 answer
  • When it comes to credit scores, why is having a
    9·1 answer
  • Which of the following is the key business objective behind the technologies implemented by PCL Construction, as discussed in th
    11·1 answer
  • A project manager sets up a recurring invite for meetings using a web-based calendar app on a mobile device. What type of automa
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!