Computer Science, asked by anglegirlmouni16, 5 months ago

Write a PL/SQL program to swap two numbers without using third variable?​

Answers

Answered by yadavs4837
2

Answer:

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.

Given two numbers num1 and num2 and the task is to swap the value of given numbers.

Examples:

Input : num1 = 1000, num2 = 2000

Output : num1 = 2000, num2 = 1000

Input : num1 = 40, num2 = 20

Output : num1 = 20, num2 = 40

Similar questions