Q:

Write a Python program to obtain greater number from the given three numbers. The number should be given through keywboard

0

Write a Python program to obtain greater number from the given three numbers. The number should be given through keywboard.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

a=int(input('enter number a:'))
b=int(input('enter number b:'))
c=int(input('enter number c:'))

if a>b and a>c:
  print('a is the greatest')
elif b>a and b>c:
  print('b is the greatest')
elif c>a and c>b:
  print('c is the greatest')
else:
    print('there are a similar numbers')

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now