Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void swap(int *x,int *y)
- {
- int temp = *x;
- *x = *y;
- *y = temp;
- }
- int main()
- {
- int n,m;
- scanf("%d %d",&n,&m);
- swap(&n,&m);
- printf("%d %d\n",n,m);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement