有没有帮小弟解答一下这个是那个环节出毛病了,我是真找不出来😓
没看到你的代码,参考下这个
#include<stdio.h>
int main()
{
int a,b,c,t;
scanf("%d%d%d", &a, &b, &c);
if (a>b) { t=a;a=b;b=t; }
if (a>c) { t=a;a=c;c=t; }
if (b>c) { t=b;b=c;c=t; }
printf("%d %d %d", a, b, c);
return 0;
}
如有帮助,请点击我的回答下方的【采纳该答案】按钮帮忙采纳下,谢谢!
代码呢
你的代码没有定义 b 和 c ,int a =0;改成
int a=0,b,c,t;