I am trying make this nested loop work.. for some reason the code does not go into the second loop..it keeps asking for a letter to enter so it does not go into the code with the k counter... and ask me 10 times to enter a letter
thanks.
char letter;
int proposition;
int i,k;
char dashes[50];
proposition=10;
for (i=0;i<proposition;i++){
printf("enter letter to guess %s\n");
scanf("%s", &letter);
for(k=0;k<ret;k++){
if (tab[k] == letter){
dashes[k]= letter;
printf("%s\n", dashes);
}
}
}