Computer Science, asked by pyrohellyeah, 7 months ago

2.7 code practice question 1

This is the question:

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

Sample Run
Enter a number: 20
Enter a number: 50
Enter a number: 5

Largest: 50

Answers

Answered by bulaniboruah11
1

Answer:

this is python code:

a =int( input("Ist no : "

b = int( input("2nd no: "))

c = int(input ("3rd no: "))

if a > b && a > c :

print("the biggest no is : " a )

elseif b > c && b > a :

print(" the biggest no is : " b)

elseif a == b && b == c :

print(" they are all equal")

elseif a==b && a > c :

print("the grestest no are: " a " and " b)

elseif b == c && b > a:

print("the grestest no are: " a " and " b)

elseif a == c && c > b:

print("the grestest no are: " a " and " c)

else:

print("the biggest no is : " c )

____ this was long so check if i made mistakes in putting variable only if it wont work _____

Similar questions