TriangleArea printout

TriangleArea - -Program Description:This program will use procedures to evaluate the area of a triangle pg.104}program

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { ----------------------------------------------------------Program Description:This program will use procedures to evaluate the area of a triangle. pg.104------------------------------------------------------------}program TriangleArea(input,output);var a,{one side of the triangle}b,{one side of the triangle}c, {one side of the triangle}s,{average of the sides}area{area of the triangle}: real;{-----------------------------------------------------------PromptForInput:This procedure prompts the user to enter the three sides of the triangle. It will assign their answers to the variables a,b,c.------------------------------------------------------------}procedure GetSides(var a,b,c: real);beginwriteln('Enter the length of the first side of the triange, then press return'); readln(a);writeln('Enter the length of the second side of the triange, then press return');readln(b);writeln('Enter the length of the third side of the triange, then press return');readln(c);end;{------------------------------------------------------------...
View Full Document

This note was uploaded on 03/27/2008 for the course CPSC 110 taught by Professor Logan during the Spring '07 term at Texas A&M.

Page1 / 2

TriangleArea - -Program Description:This program will use procedures to evaluate the area of a triangle pg.104}program

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online