Program to find area of Triangle when three sides are given

Program to find area of Triangle

-Program:

10 REM Program to find area of Triangle when three sides are given.
20 INPUT “Enter length of first side of Triangle: ” ; X
30 INPUT “Enter length of second side of Triangle: ” ; Y
40 INPUT “Enter length of third side of Triangle: ” ; Z
50 LET S = (X+Y+Z)/2
60 AREA = SQR(S*(S-X)*(S-Y)*(S-Z))
70 PRINT “Area of Triangle is: ” ; AREA
80 END

-Algorithm:

STEP 1 START
STEP 2 INPUT X,Y,Z
STEP 3 COMPUTE S = (X+Y+Z)/2
STEP 4 COMPUTE AREA = SQR(S*(S-X)*(S-Y)*(S-Z))
STEP 5 PRINT AREA
STEP 6 END

-Using GW-BASIC:

Using GW-BASIC emulator for Windows, I’ve made the following program:

Program to find area of a triangle when three sides are given

-Output:

Output

Output


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

M.Bakhtiar Zuberi
Hello, I'm M.Bakhtiar Zuberi, the only article poster & owner of this website. Your comments/suggestions are welcomed the most! RajasTutorials.com is a part of 3DPixelz.com network.

One Comment

  1. maha haider says:

    this is helpful. thank you

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: