I am doing a game where user have to enter coordinates: F5, H8 
For example.
I want to do this in a 'for' loop but it is working only for first time, further it is not working well. I'm looking for any advice.
    #include <stdio.h>
#include <stdlib.h>
int k,z,x;
char y;
int main()
{
    for(k=1;k<=10;k++)
    {
printf("Enter letter and digit\n");
    scanf("%c %d",&y,&x);
    printf("%c %d\n",y,x);
    }
    return 0;
}
 
     
    