Home  |  IT Zone  | Practice ZoneTips / Tricks  |  Did You Know  |  Inspirational  |  Health  |  Insurance  |  Universities  |  Forex  |  Mathematics  |  Illusions  |  Children Day Quotes  |  Be Aware  |  Articles  | Funny Pics | Entertainment | Songs | Simple Joys of Life |

A program to check a triangle whether it is right angled or not when sides are given. (Qbasic Code)

REM A program to check a triangle whether it is right angled or not when sides are given. (Qbasic Code)

INPUT "Enter the longest side of triangle"; h
INPUT "Enter second side of triangle"; p
INPUT "Enter third side of triangle"; b
IF h ^ 2 = p ^ 2 + b ^ 2 THEN
    PRINT "The triangle is right-angled."
ELSE
    PRINT "The triangle is not right angled."
END IF
END

Share :

X
Back To Top

facebook main

Powered by Blogger.