Task-3 Qsn-5

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(inp…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Task-3 Qsn-5." PERUMAL S | Sciencx - Tuesday July 16, 2024, https://www.scien.cx/2024/07/16/task-3-qsn-5/
HARVARD
PERUMAL S | Sciencx Tuesday July 16, 2024 » Task-3 Qsn-5., viewed ,<https://www.scien.cx/2024/07/16/task-3-qsn-5/>
VANCOUVER
PERUMAL S | Sciencx - » Task-3 Qsn-5. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/16/task-3-qsn-5/
CHICAGO
" » Task-3 Qsn-5." PERUMAL S | Sciencx - Accessed . https://www.scien.cx/2024/07/16/task-3-qsn-5/
IEEE
" » Task-3 Qsn-5." PERUMAL S | Sciencx [Online]. Available: https://www.scien.cx/2024/07/16/task-3-qsn-5/. [Accessed: ]
rf:citation
» Task-3 Qsn-5 | PERUMAL S | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.