This commit is contained in:
ada-dmitry
2023-11-18 21:17:47 +03:00
parent 1bbd6527b8
commit a3c32e3438
17 changed files with 147 additions and 1 deletions
+12
View File
@@ -0,0 +1,12 @@
#include <stdio.h>
void swap(int *px, int *py)
{
int t;
t = *px;
*px = *py;
*py = t;
return;
}
+14
View File
@@ -0,0 +1,14 @@
#include <stdio.h>
void swap(int *px, int *py);
int main()
{
int x, y;
scanf("%d%d", &x, &y);
swap(&x, &y);
printf("%d %d\n", x, y);
return 0;
}
Binary file not shown.