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

Download Games From Torrent Now : Torrentz Game

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.