>>776 礼はいらない。
#include <stdio.h>
#include <string.h>
#define MAX_Q 6
int main() {
  int tokuten = 0, index = 0;
  char input[100];
  char questions[MAX_Q][100]={
    "12×(3+4)=", "(1+1÷9)×9=",
    "(29−5)÷(17−11)=", "2の10乗=",
    "(3×9+44÷2)のルート=", "8の階乗="
  };
  char answer[MAX_Q][100]={
    "84", "9",
    "4", "1024",
    "7", "40320"
  };
  while( index < MAX_Q ){
    printf("第%d問\n%s\n回答:", index+1, questions[index]);
    fgets(input, 100, stdin);
    input[strlen(input)-1] = '\0';
    if( !strcmp(input, answer[index]) ){
      printf("正解!\n");
      tokuten++;
    } else
      printf("ばーか!\n");
    index++;
    printf("\n");
  }
  printf("あなたの成績は%d点でした。\n", tokuten);
  return 0;
}