here ur advice is good but i dont think i know enough to do it, i changed it even more but it still dont work
Code:
#include <stdio.h>
#include <string.h>
int main()
{
char tin[4];
char yes[4];
char buffer[4];
int x,flag=0;
while(flag == 0 ){
strcpy(yes,"yes");
printf("enter a ascii value to see its corresponding character - ");
scanf("%3d",&x);
printf(" \n the ascii character of %d is %c \n",x,x);
printf(" \t Would you like to start over?(yes or no)");
fgets(buffer, sizeof(buffer) , stdin);
sscanf(buffer, "%s", &tin);
fflush(stdout);
getchar();
flag = strcmp(tin,yes);
}
}