when i run my code even if i enter "yes" for the input it doesnt loop over. any idea?
Code:#include <stdio.h>
#include <string.h>
int main()
{
int x;
char tin[2];
printf("\n");
do{
printf("enter a ascii value to see its corresponding character - ");
scanf("%i", &x);
printf(" \n the ascii character of %i is %c \n \t Would you like to start over?(yes or no)", x , (char)x);
fgets(tin, 2, stdin);
getchar();
}while(tin == "yes");
}