PL/SQL program to find Square of a number

In this program, we will take input from users and find the square of the number in the PL/SQL program.

declare
x integer;
begin
x:=&x;
dbms_output.put_line('square of number: '||(x*x));
end;
/

output

Enter value for x: 4
old   4: x:=&x;
new   4: x:=4;
square of number: 16