Advertisement
netx_iit

Area of Circle with Constant keyword

Sep 27th, 2023
1,523
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PL/SQL 0.17 KB | Source Code | 0 0
  1.  DECLARE
  2.  Pi CONSTANT REAL:=3.14;
  3.  Area NUMBER;
  4.  R NUMBER:=&R;
  5.  BEGIN
  6.  Area:=pi*r**2;
  7.  DBMS_OUTPUT.PUT_LINE('THE AREA OF CIRCLE WITH RADIUS '||r||' IS '||area);
  8.  END;
Tags: PLSQL constant
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement