This content originally appeared on DEV Community and was authored by PERUMAL S
Create a program that takes three numbers as input and prints the largest of the three.
Ans
note i have added Loop
while True:
num1=int(input("enter a number 1:"))
num2=int(input("enter a number 2:"))
num3=int(input("enter a number 3:"))
if num2<=num1>=num3:
print ("biggest num is",num1)
elif num1<=num2>=num3:
print ("biggest num is",num2)
else:
print ("biggest num is",num3)
This content originally appeared on DEV Community and was authored by PERUMAL S
PERUMAL S | Sciencx (2024-07-16T17:58:28+00:00) Task-3 Qsn-5. Retrieved from https://www.scien.cx/2024/07/16/task-3-qsn-5/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.