麻烦帮忙看看为什么调试正确,但是运行错误。数字1,-100,90
#include<stdio.h>#include<math.h>
int main(void)
{
signed number1,number2,number3,a,b,c,max;
printf("Input 3 number:");
scanf("%d,%d,%d",&number1,&number2,&number3);
a=abs(number1);
b=abs(number2);
c=abs(number3);
if(a>b)
{
max=a;
if(a>c)
{
max=a;
}
else
{
max=c;
}
}
else
{
max=b;
if(b>c)
{
max=b;
}
else
{
max=c;
}
}
printf("Output:\nThe number with maximum absolute value is %d.\n",max);
return 0;
}