Session
Input and Output
Question ID
1811110031 : Swap
Problem Description
Write a Python Program to swap two numbers without using third Variable
Logic Test Case 1
Input (stdin)
10
20
Expected Output
20
10
Logic Test Case 2
Input (stdin)
30
50
Expected Output
50
Code Editor PYTHONPython
a = input()
b = input()
print(b)
print(a)
No comments:
Post a Comment