I need get input numbers on one line :
char c[3]; scanf("%[^\\n]%*c", c); int x = (int)c[0]-48 , y = (int)c[2]-48;
but this code