Odd Number

    0

    0

    Mahendra Kumar

    beginner

    To find whether the given number is odd or not

    # take inputs
    num = int(input())
    # check number is odd or not
    if(num % 2 != 0):
     print('{0} is an odd number'.format(num))
     print('{0} is an odd number'.format(num))
    else:
     print('{0} is not an odd number'.format(num))
     print('{0} is not an odd number'.format(num))
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.