PL/SQL Program to Add Two Numbers

PL/SQL Program to Add Two Numbers:

declare
a number;
b number;
c number;
begin
a:=:a;
b:=:b;
c:=a+b;
dbms_output.put_line(a||' + '||b||' = '||c);
end;

OUTPUT:

5 + 5 = 10

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.