Just in case any one is interested, this is the code that I came up with in the end. There was a lot more I could have done, but the tutor has told me he won't mark me any higher than a pass because it's late

Anyway, it's done and dusted now...
//-----------------------------------------------------------------------------|
// Mathematics Computer Aided Learning Program |
// |
// Written by Fenris - April 2002 |
//-----------------------------------------------------------------------------|
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <conio.h>
void correct(int);
void wrong(int);
main()
{
char choice;
int ran1, ran2, solution, input, ans, count, corans, countin;
printf("\t---------------------------------------------------------------------------\n");
printf("\t| Welcome to the Maths Computer Aided Learning Program! |\n");
printf("\t---------------------------------------------------------------------------\n\n");
printf("Please select an option from the menu below:\n\n");
printf("Please enter A for addition, S for subtraction,\n");
printf("M for multiplication or any other key to quit.\n\n\n");
choice = getchar();
switch(choice)
{
case 'a':
case 'A': printf("\nYou selected addition.\n\n"); break;
case 's':
case 'S': printf("\nYou selected subtraction.\n\n"); break;
case 'm':
case 'M': printf("\nYou selected multiplication.\n\n"); break;
default: printf("\nGoodbye! (Press any key to quit).");
fflush(stdin);
getch();
exit (0);
}
corans = 0;
for(count = 0; count < 10; count++)
{
// Could not get the randomize and random commands to work on this
// compiler. This works okay though.
srand(time(NULL));
ran1 = 1 + (rand() % 10);
ran2 = 1 + (rand() % 10);
if((choice == 'a') || (choice == 'A')) solution = ran1 + ran2;
else if((choice == 's') || (choice == 'S')) solution = ran1 - ran2;
else if((choice == 'm') || (choice == 'M')) solution = ran1 * ran2;
printf("What is %d ", ran1);
if((choice == 'a') || (choice == 'A')) printf("+");
else if((choice == 's') || (choice == 'S')) printf("-");
else if((choice == 'm') || (choice == 'M')) printf("*");
printf(" %d\t\t\t\t", ran2);
scanf("%d", &input);
if(input == solution)
{
corans++;
ans = 1 + (rand() % 4);
correct(ans);
}
else
{
ans = 1 + (rand() % 4);
wrong(ans);
countin = 0;
while((countin < 2) && (input != solution))
{
ans = 1 + (rand() % 4);
printf("Try again...");
printf("\t\t\t\t");
scanf("%d", &input);
if(input == solution)
{
corans++;
ans = 1 + (rand() % 4);
correct(ans);
}
else
{
wrong(ans);
countin++;
}
}
}
}
printf("\n\t-- END OF TEST --\n\n");
printf("You scored = %d out of 10\n\n", corans);
if (corans > 7) printf("Well done, you passed!\n");
else printf("You really are thick. Go and shoot yourself.\n");
printf("\nPress any key to continue");
fflush(stdin);
getch();
return 0;
}
//------------------------------------------------------------------------------
void correct(ans)
{
switch(ans)
{
case 1:
printf("\nVery good!\n\n");
break;
case 2:
printf("\nNice one!\n\n");
break;
case 3:
printf("\nHurrah!\n\n");
break;
case 4:
printf("\nKeep up the good work!\n\n");
}
}
//------------------------------------------------------------------------------
void wrong(ans)
{
switch(ans)
{
case 1:
printf("\nNo, idiot!\n\n");
break;
case 2:
printf("\nAre your parents brother and sister?\n\n");
break;
case 3:
printf("\nRetard!\n\n");
break;
case 4:
printf("\nAre you stupid?\n\n");
}
}