Write a program to find and print the largest among three number


Topic: Write a program to find and print the largest among three number

Solution

snum1 = 10
num2 = 12
num3 = 14 
if (num1 >= num2) and (num1 >= num3): 
   largest = num1
elif (num2 >= num1) and (num2 >= num3):   
    largest = num2
else:   largest = num3
print(f'largest:{largest}')



List all Python Programs