It's likely that you entered 5,50 as suggested by laserlight.
since x and y are global variables, they are initialized to 0.
scanf() will fail when it reads ',' and return 1(check return value), x...