Untitled
public text v1 · immutable
#include <stdio.h>
int main()
{
char reply[100];
char answer[]="yes";
printf("Hey do you like south park\n");
scanf("%s", answer);
fflush(stdin);
if(strcmp(answer,reply) == 0)
printf("Yea, i like it too\n");
else
printf("oh, neither do i\n");
printf("Do you like futurama\n");
fgets(answer,sizeof(answer),stdin);
fflush(stdin);
if(strcmp(reply,answer) == 0)
printf("Yea, I like it too\n");
else
printf("oh, neither do i\n");
getchar();
return 0;
}