Computer Science, asked by bemny3195, 9 months ago

Write PL SQL code to find area of triangle

Answers

Answered by Anonymous
1

Answer:

hope it will help you

.........

hhh

Answered by rk9506863
6

Write PL SQL code to find area of triangle

Explanation:

PL SQL Code to find the area of triangle

Formula : required to find area of triangle are : 1/2 Base * Height

declare

base float;

height float;

area float;

BEGIN

height:= 12.5;

base := 10.2;

dbs_output.put_line('Height = '||height);

dbs_output.put_line('Base = '||base);

area := 0.5 * base * height;

dbs_output.put_line('The area of the triangle is ' ||area');

end;

Output

The area of the triangle is : 63.75

Similar questions