- 博客(2)
- 收藏
- 关注
原创 2021-03-18
PTA 三个数比较大小## 本题要求将输入的任意3个整数从小到大输出。 输入格式: 输入在一行中给出3个整数,其间以空格分隔。 输出格式: 在一行中将3个整数从小到大输出,其间以“->”相连。 输入样例: 4 2 8 输出样例: 2->4->8 #include <stdio.h> int swap(int*,int*);int swap(intx,inty){ int t; t=*x; *x=*y; *y=t;}int main(){ int a
2021-03-18 19:50:11
86
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人