Question
Write a Python program that will prompt the user for three integers and display A. the integers, B. their sum, C. their product, D. the
Write a Python program that will prompt the user for three integers and display
A. the integers,
B. their sum,
C. their product,
D. the sum raised to the power of the first integer (use operator **)
E. the sum divided by the second integer (use operator / )
F. The sum divided by the third integer (use operator // ) NOTE: // may be referred to as integer division in the literature
G. The remainder of the division of sum by the first integer (use operator % )
H, maximum using the max function
I . minimum using the min function
J. average of the three integers NOTE: use you answer from b (sum) do NOT add the numbers again
Assume the user does not use decimals and the integers is NOT zero
Using the below template:
File Edit View Naig Code Help Project * r | ia programo (6).py | program0 (6).py > li External Libraries #Constants c1 = 2 c2 = 3 c3 =-5 # input statements xint (input (Please enter integer ...")) y = int (input(" Please enter another integer ")) z = int (input (" Please enter the third integer ")) 10 print ("the numbers entered are ", x," and", y, " and ", z) s=x+y+z m = max (x, y, z) # MAX function similar function f r min 12 13 14 15 16 17 18 19 20 21 print ("values are SUM-", 3, " product -", p," maximum -",m) this is a mment #the following if else structure is used to illustrate the syntax note the identation if (x> 0): 23 24 25 26 27 28 29 else: y = C3*y print ("NEW value of x = ", x, " and ", " y ", y)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started