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

I’m M.Bakhtiar Zuberi, the owner of 3DPixelz.com and its network websites. I’ve been web-developing & graphics-designing for the past 7 years, since the age of 11. I like to work with PHP/HTML and Photoshop/Illustrator. Part-time developer of ZCL and ETC cryptocurrencies. I love to blog here and write for Tribune in my free time.

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: