PL/SQL program to demonstrate the working of arithmetic operations

In this program, we will take two input from users and perform demonstrations of arithmetic operations

declare
x integer;
y integer;
begin
x:=&x;
y:=&y;
dbms_output.put_line('ADDITION is: '||(x+y));
dbms_output.put_line('SUBTRACTION is: '||(x-y));
dbms_output.put_line('MULTIPLICATION is: '||(x*y));
dbms_output.put_line('DIVISION is: '||(x/y));
dbms_output.put_line('EXPONENT is: '||(x**y));
end;
/

output

Enter value for x: 4
old   5: x:=&x;
new   5: x:=4;
Enter value for y: 2
old   6: y:=&y;
new   6: y:=2;
ADDITION is: 6
SUBTRACTION is: 2
MULTIPLICATION is: 8
DIVISION is: 2
EXPONENT is: 16