PL/SQL Program to Find Area of Triangle

PL/SQL Program to Find Area of Triangle:



declare
base integer; 
height integer;
area integer;
begin
base:=:base;
height:=:height;
dbms_output.put_line('Height = '||height);
dbms_output.put_line('Base = '||base);
area:=0.5*base*height;
dbms_output.put_line('The area of triangle is '||area);
end;

OUTPUT:

Height = 12
Base = 5
The area of triangle is 30




Leave a Reply

Your email address will not be published. Required fields are marked *

fifteen − four =