Largest number

    0

    0

    Mahendra Kumar

    logicplayingWithNumbers

    Python Program to Find Largest of 3 Numbers

    # take inputs
    num1 = int(input())
    num2 = int(input())
    num3 = int(input())
    # find largest numbers
    if (num1 >= num2) and (num1 >= num3):
        largest = num1
    elif (num2 >= num1) and (num2 >= num3):
        largest = num2
    else:
        largest = num3
    # display result
    print('The largest number = ', largest)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    Legal
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.