从键盘上输入任意一个整数,然后输出它的绝对值!

#include<stdio.h>
int main()
{
int x;
scanf("%d",&x);
if(x<0)
x=-x;
printf("%d",x);
return 0;
}

猜你喜欢

转载自blog.csdn.net/qq_43609148/article/details/83747725