Computer Science, asked by ZiahPrincess89451, 10 months ago

Write a pl/sql program to input two numbers and display the total and average of these numbers.

Answers

Answered by scl038
0

declare variable x, y  

-- and z of datatype number  

x number(5);              

y number(5);              

z number(7);          

 

begin

 

-- Here we Assigning 10 into x  

x:=10;                  

 

-- Assigning 20 into x  

y:=20;                  

 

Assigning sum of x and y into z  

z:=x+y;                  

 

// Print the Result  

dbms_output.put_line('Sum is '||z);  

end;  

output is 30  

Similar questions