mirror of
https://github.com/nolongeractivemp3/shipthatcode-c.git
synced 2026-11-24 10:45:12 +01:00
17 lines
229 B
C
17 lines
229 B
C
#include <stdio.h>
|
|
#include <stdnoreturn.h>
|
|
|
|
void swap(int *a, int *b) {
|
|
int temp = *a;
|
|
*a = *b;
|
|
*b = temp;
|
|
}
|
|
|
|
int main(void) {
|
|
int a, b;
|
|
scanf("%d %d", &a, &b);
|
|
swap(&a, &b);
|
|
printf("%d %d\n", a, b);
|
|
return 0;
|
|
}
|