PL/SQL Program to Find Square of Number

PL/SQL Program to Find Square of Number:

declare  
no number; 
sqr number; 
begin
no:=:no;
sqr:=no*no;  
dbms_output.put_line('Given Number is '||no); 
dbms_output.put_line(' '); 
dbms_output.put_line('Square of Number is '||sqr); 
end;

You may also like: How to Create Android App Without Coding

OUTPUT:

Given Number is 5
 
Square of Number is 25

You may also like...

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.