Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Problem 2007. Swap two numbers

Created by Deepesh B

Example

Input:

 a = 10
 b = 20

Output

 a = 20
 b = 10

Tags

Problem Group

Solution Statistics

43 correct solutions 25 incorrect solutions
Last solution submitted on Mar 29, 2014

Problem Comments