Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

neha

--Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
--please drop objects you've created at the end of the script 
--or check for their existance before creating
--'\\' is a delimiter

declare
x number(5);              
y number(5);             
Add number(7);    
Sub number(7) ; 
Multi number(7) ;
Div number(7) ;
begin 
x:=10;                
y:=20;         
Add:=x+y;     
Sub:= x-y;
Multi:= x*y;
Div:=x/y;             
dbms_output.put_line('Sum is '||Add);  
dbms_output.put_line('sub is '||Sub);  
dbms_output.put_line('multi is '||Multi); 
dbms_output.put_line('div is '||Div);  
end;
 run  | edit  | history  | help 0