#include void main () { int y,x; printf ("please write down a number\n"); scanf ("%d,&x); (y=x>=0?x:-x); printf ("%d",&y); }scanf里面要加取地址符号“&”
把这句scanf ("%d,x); 改为 scanf ("%d“,x); 再试试
scanf ("%d,x);scanf ("%d",&x);
楼上正解