Untitled
public text v1 · immutable#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
char command[80], temp[80];
int i;
for( ; ; ) {
printf("what's 2*2");
gets(command);
if(!strcmp(command, "quit"))
break;
{
if(!strcmp(command, "4"))
printf("correct!\nwhats 3*3?\n" );
else if(!strcmp(command, "subtract"))
printf("%d\n" );
else
printf("fel! \n");
}
}
return 0;
}