PYTHON CODE FOR GREATEST OF 2(TWO) NUMBERS

HI GUYS, I AM GOING TO SHOW YOU PYTHON CODE FOR FIND THE GREATEST OF TWO NUMBERS.



CODE 

RUN THE CODE 

DOWNLOAD THE CODE FROM BELOW




Comments

  1. Didn't defined the code for equal to....
    So correct it ......👍👍

    ReplyDelete
    Replies
    1. Bro it's only for greatest if you want equal to then
      a=int(input("ent a"))
      b=int(input("ent b"))
      if a>b:
      print("a>b",a,">",b)
      elif a==b:
      print("a=b",a,"=",b)
      else:
      print("b>a",b,">",a)

      Delete

Post a Comment