first, learn some indentation so you can post your queries in a nice way for people to read.
you need to put a loop in to have the program ask you the questions more than once, you can use a for loop, or a while loop for example.
this is a way of getting a random number that you can then test in your switch or whatever >
Code:
//remember to include a header like time.h with a random number function in it
const int QMAX = 3; //this so that you can set the max number of questions to choose from
int main()
{
int qnum = 0;
int count = 0;
srand(time(NULL)); //always leave this outside of any loop and
//only use once in the program, usually at the beginning like here for example.
for(count = 0; count < 10; count++) //loop ten times
{
qnum = rand() % QMAX; //choose a random number 0, 1 or 2
printf("question number = %d\n", qnum);
}
printf("\n");
return 0;
}
now if you think about it you can put more stuff inside the loop, so it asks questions each time etc etc.
before the loop starts you can do your first display, the title and categories etc,...
get rid of the goto part that you had before.