All pastes #608421 Raw Edit

Untitled

public text v1 · immutable
·published 2007-07-08 08:50 UTC
rendered paste body
#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;
}