KT1001 @ 2024-04-01 15:30:37
#include<stdio.h>
int main()
{
int n, m;
char flag = '-';
scanf("%d", &n);
int t = n;
while(t){
int temp = t % 10;
m = m * 10 + temp;
t /= 10;
}
if(n) printf("%d", m);
else printf("%c%d",flag,m);
return 0;
}
by keep_shining @ 2024-04-01 16:28:19
你的程序将
by keep_shining @ 2024-04-01 16:28:56
但0应该当正数
by KT1001 @ 2024-04-01 16:34:21
@QAQll955cn 非常非常非常非常非常感谢!