--sum of two numbers
DECLARE
num1 NUMBER := 10;
num2 NUMBER := 20;
sums NUMBER;
BEGIN
sums := num1 + num2;
DBMS_OUTPUT.PUT_LINE(sums);
END;
/
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter