#include <stdio.h>
#include <math.h>
#include <time.h>
#include <windows.h>
int main()
{
int k,i,x;
char words[100][20] = {"banana", "mandarine", "watermelon", "gyul", "earth", "land", "world", "sc"};
char a[20] = {0};
char b;
srand(time(NULL));
k = rand()%8;
while(1)
{
for (i=0; i<strlen(words[k]); i++)
{
if (a[i]==1)
{
printf ("%c",words[k][i]);
}
else
{
printf ("_");
}
}
printf("\n");
for (i=1;istrlen(words[k]);i++)
{
}
scanf (" %c",&b);
for (i=0; i<strlen(words[k]); i++)
{
if (b==words[k][i])
{
a[i]=1;
}
}
Sleep(100);
}
return 0;
}