#program to check the greatest among 3 numbers
num1 = int(input("Enter 1st number: "))
num2 = int(input("Enter 2nd number: "))
num3 = int(input("Enter 3rd number: "))
gr = num1
if(gr > num2):
if(gr > num3):
print("Greatest is", gr)
else:
gr = num3
print("Greatest is", gr)
elif(gr < num2):
gr = num2
if(gr > num3):
print("Greatest is", gr)
else:
gr = num3
print("Greatest is", gr)
else:
print("Greatest is", gr)
To embed this program on your website, copy the following code and paste it into your website's HTML: