Here is what I have now. It outputs my name and lets me input T or F but it doesn't display the result.
Code:
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(void)
{
int i,j;
char choice[BUFSIZ], name[BUFSIZ];
char output [2][24] = {"Your answer is wrong.",
"Your answer is correct!"};
printf("What is your name ?");
gets(name);
puts("Hello");
puts(name);
printf("Is Europe larger than Asia? (T) or (F):");
scanf("%s", &choice);
//gets(choice);
putchar('\n');
for(i=0; i<24; i++)
if (toupper (choice) =="T")
puts (output[i]);
//if( strcmp( choice , F ) == 0 )
// printf("%s", F);
// else
//else if (strcmp(choice , F) < 0)
// putchar("\n");
//puts(F[i]);
// printf("%s", T);
return 0;
}