Saturday, January 2, 2021

Write a Python Program to swap two numbers without using third Variable

 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

cisco Cybersecurity Essentials Quiz 8 answer in bold

Question  1 Correct Mark 2.00 out of 2.00 Flag question Question text A company has had several incidents involving users downloading unauth...