Sum Of Two Numbers in PL/SQL
Prerequisite – PL/SQL introduction
In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements.
In declare part, we declare variables and between begin and end part, we perform the operations.
Here, first, we take three variables x, y, and z and assign the value in x and y and after addition of both the numbers, we assign the resultant value to z and print z.
Input : 15 25 Output : 40
Input : 250 400 Output : 650
Below is the required implementation:
Sum is 30
Attention reader! Don’t stop learning now. Learn SQL for interviews using SQL Course by GeeksforGeeks.