Problem2182--Swap the values of two integers

2182: Swap the values of two integers

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 745  Solved: 225
[Submit] [Status] [Web Board] [Creator:]

Description

This problem requires writing a void function using two type int call-by-reference parameters that swaps the values in the arguments. Be sure to include testable pre and post conditions.

Input

Given two positive integers x and y

Output

Swap the values of x and y

Sample Input Copy

1,2

Sample Output Copy

2,1

Source/Category

2