Write a program to find the lowest among 3 integers in python
Answers
Answered by
0
a=5
b=6
c=4
if a>b>c:
print("a is greatest ")
if b>a>c:
print("b is greatest")
if c>a>b:
print ("c is greatest ")
Answered by
2
The following codes will have to be typed in script mode, saved and then executed.
CODE:
x = int(input("Enter a value:"))
y = int(input("Enter a second value:"))
z = int(input("Enter a third value:"))
if x < y and x < z:
print(x, "is the lowest value.")
elif y < x and y < z:
print(y, "is the lowest value.")
elif z < x and z < y:
print(z, "is the lowest value.")
else:
print("Please enter three distinct values.)
Similar questions