answersLogoWhite

0


Best Answer

{A program to compute the area of a triangle}

{by Ogboin W. Meshach}

Var;

b,h:real;

BEGIN

Writeln('Triangle');

Write('Base: ');

Readln(base);

Write('Height: ');

Readln(height);

area:=0.5*base*height;

Writeln('Area: ', area :0:2);

End.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Augustine Aizotegbe

Lvl 2
2y ago

write a pascal program to compute and print area of a circle ac=2πr^2

This answer is:
User Avatar
User Avatar

Janice Connelly

Lvl 1
2y ago
how did you get that answer

Add your answer:

Earn +20 pts
Q: Write a pascal program that compute an area of a triangle?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c program to find Volume and surface area of cube?

Write a c program to compute the surface area and volume of a cube


Write a program in pascal that calculates the area of a circle?

{Area s the area of cube} {Length is the length of one side of the cube} program AreaofCube; var Area,Length:real; begin write('Enter the length of cube: '); readln(Length); Area:=6*(Length*Length); writeln('The area of cube is ', Area, ' cm^2.'); end.


Write a program in c plus plus to compute first of non-terminal?

there is no solution of this problem...........that's it..........


How do you know if odd or even in turbo pascal program?

if n MOD 2 == 0 THEN Write ("Even");


Write a program in FORTRAN C language to compute control ratios used in budgeting with reference to any organization?

if u give control ratios used in budgeting i can write program in C/C++


Can you give me a program that will compute number 1 to 5?

nr\m;laeoh9y0m g.qthnedxc In fortran: do i=1,5 write(6,*)i enddo stop end This program will write the numbers 1 to 5 on the screen.


Write a c plus plus program to compute two integers?

int x= 1; int y= 2;


Write a program to compute the sum of first ten integer numbers in PHP?

$n = 10*(1+10)/2;


Write a program in qbasic to make a hut using print statemant?

a triangle then a square :)


Write a program in pascal that declares two integers and gives there sum?

This is not a question so you do not need to use a question mark at the end of your sentence.


How do you create pascal's triangle?

1 1 11 2 11 3 3 11 4 6 4 11 5 10 10 5 1...Simply write the triangle below:11 1Then write 1 on the ends and add the two values above the position you're in to get the next triangle.


How can you start the program 'read in the lengths of the sides of a triangle and determine whether the triangle is an isosceles triangle two sides are equal an equilateral triangle three sides are'?

This would depend on what programming language you wanted to write it in. For example, in Pascal, the code might look like this: Program Isosceles; Var A, B, C : Real; Begin WriteLn('Input side A.'); ReadLn(A); WriteLn('Input side B.'); ReadLn(B); WriteLn('Input side C.'); ReadLn(C); If A = B Then Begin If B = C Then Begin WriteLn('This triangle is equilateral.'); End Else Begin WriteLn('This triangle is isosceles.'); And so on.