set serveroutput on
declare
rad number(5):=&r1;
ar number(5,2);
circle number(5,2);
pie constant number(5,2):=3.14;
begin
ar:=pie*rad*rad;
circle:=2*pie*rad;
dbms_output.put_line('area of circle is'|| ar);
dbms_output.put_line('circumference is'||circle);
end;
/
No comments:
Post a Comment