answersLogoWhite

0

{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

13y ago

What else can I help you with?

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 c plus plus to compute first of non-terminal?

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


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.


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.


Write a program that input a positive integer and prints a triangle using for loop?

write a program that reads in the size of the side of square and then pints a hollow square of that size out of asterisks and blanks?