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
Rzqust [24]
4 years ago
8

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

Computers and Technology
1 answer:
Roman55 [17]4 years ago
6 0

Answer:

first = int(input("Enter first number "))

second = int(input("Enter second number "))

third = int(input("Enter third number "))

largest = max([first, second, third]);

print("The largest number is", largest)

Explanation:

There you go!

You might be interested in
Wow, in this century, technology have been the most valuable. What is the worst of using the hi-tech phones
antoniya [11.8K]
The damage of batteries. The charging and discharging of batteries lead to its diminished lifespan with use
7 0
4 years ago
Read 2 more answers
Q1) What would be the output of the program shown in the figure?
tensa zangetsu [6.8K]

Answer:

23. Write a function named "g_c_d" that takes two positive integer arguments and returns as its value

the greatest common divisor of those two integers. If the function is passed an argument that is not

positive (i.e., greater than zero), then the function should return the value 0 as a sentinel value to

indicate that an error occurred. Thus, for example,

cout << g_c_d(40,50) << endl; // will print 10

cout << g_c_d(256,625) << endl; // will print 1

cout << g_c_d(42,6) << endl; // will print 6

cout << g_c_d(0,32) << endl; // will print 0 (even though 32

is the g.c.d.)

cout << g_c_d(10,-6) << endl; // will print 0 (even though 2 is

the g.c.d.)

24. A positive integer n is said to be prime (or, "a prime") if and only if n is greater than 1 and is

divisible only by 1 and n . For example, the integers 17 and 29 are prime, but 1 and 38 are not

prime. Write a function named "is_prime" that takes a positive integer argument and returns as its

value the integer 1 if the argument is prime and returns the integer 0 otherwise. Thus, for example,

cout << is_prime(19) << endl; // will print 1

cout << is_prime(1) << endl; // will print 0

cout << is_prime(51) << endl; // will print 0

cout << is_prime(-13) << endl; // will print 0

25. Write a function named "digit_name" that takes an integer argument in the range from 1 to 9 ,

inclusive, and prints the English name for that integer on the computer screen. No newline character

should be sent to the screen following the digit name. The function should not return a value. The

cursor should remain on the same line as the name that has been printed. If the argument is not in the

required range, then the function should print "digit error" without the quotation marks but followed by

the newline character. Thus, for example,

the statement digit_name(7); should print seven on the screen;

the statement digit_name(0); should print digit error on the screen and place

the cursor at the beginning of the next line.Explanation:

6 0
2 years ago
Read the following sentences: “The Soviet Union’s famous launch of a satellite called Sputnik had been an embarrassment for the
zhenek [66]

Answer:

That the USA and USSR's interest in competing in the space race for international recognition.

Explanation:

4 0
4 years ago
Suppose the algorithms used to implement the operations at layer k is changed. how does this impact services at layers k-1 and k
yarga [219]
If the algorithm is changed for the operations at layer k, the services at k1 will change since the services will be operated after the layer. For the services at k-1, they will not be affected since they are prior to the algorithms.<span />
4 0
3 years ago
Your classmate is frustrated because the code that was designed to add up her five quiz grades is not working properly.
inna [77]

Answer:

sum = 0 must be before for loop. If inside for loop, it will keep resetting sum to 0 each iteration.

Explanation:

hope this helps

7 0
3 years ago
Other questions:
  • Which is a popular IRC chat service?
    8·1 answer
  • You are planning to buy a new server that will act as the server portion of a client/server application. A colleague of yours ma
    9·1 answer
  • (Display four patterns using loops) Ask the user to enter an integer to
    8·1 answer
  • What frequency band or bands do 802.11g, 802.11a, 802.11n, and 802.11ac use?
    13·1 answer
  • do you think that some people have difficulty talking to others face to face because of how prevalent texting is today
    15·2 answers
  • Viruses and worms can affect a system by:
    11·2 answers
  • What will be the code in CSS, to set
    8·1 answer
  • Use the drop-down menu to complete the sentences about the benefits of flowcharts.
    5·1 answer
  • What is the output of the following code:
    12·1 answer
  • What is the full form of MPEG?<br> The full form for MPEG is ________.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!