Take a look at this, and try it. Study it to see what parts of it you want to use, and in what order.
Code:
#include <stdio.h>
int main(void) {
int input;
do {
printf( "1. Play game\n" );
printf( "2. Load game\n" );
printf( "3. Play multiplayer\n" );
printf( "4. Exit\n" );
printf(" Your choice: ");
scanf( "%d", &input );
printf("\n");
/* There are no other functions for this example. Only the users choice is printed to show it's working properly. */
switch( input)
{
case 1:
//playgame();
printf("1 was chosen");
break;
case 2:
//loadgame();
printf("2 was chosen");
break;
case 3:
//playmultiplayer();
printf("3 was chosen");
break;
case 4:
printf( "Goodbye" );
break;
default:
printf( "Bad input, try again" );
break; // is OK to put here, but not needed, since it is last in order
}
printf("\n\n");
}while(input != 4);
return 0;
}