AreaTriangle

    0

    1

    Mahendra Kumar

    basicMathsbeginner

    calculating the area of triangle

    # take inputs
    base = float(input('Enter the base of the triangle: '))
    height = float(input('Enter the height of the triangle: '))
    # calculate area of triangle
    area = (1/2) * base * height
    # display result
    print('Area of triangle = ',area)
    
    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.