DevJourney · code I wrote while learning

README.md

Single File Programming Question

Problem Statement

Indrajith wants to swap two numbers using their address in his lab exam. Write a program to obtain two numbers and swap them using call by reference.

Input format :

The input consists of two numbers separated by a space.

Output format :

The output displays the numbers after swapping, separated by a space.

Refer to the sample output for formatting specifications.

Code constraints :

The given test cases fall under the following constraints:

-100000 ≤ num1, num2 ≤ 100000

Sample test cases :

Input 1 :

9856 7521

Output 1 :

7521 9856

Input 2 :

10 36

Output 2 :

36 10