How to add two numbers in PL/SQL
PL/SQL Program
Adding Two Numbers
Using this program two predefined given numbers can be added in PL/SQL.
DECLARE
a INTEGER := 10;
b INTEGER := 20;
c INTEGER;
f REAL;
BEGIN
c:=a+b;
dbms_output.put_line ('Value of c is : '||c);
f:=70.0/3.0;
dbms_output.put_line('Value of f is : '||f);
END;
/
The Output for the above program will be -
Value of c is : 30
PL/SQL procedure successfully completed.
****ATCAPH.com****
Comments
Post a Comment