Sorry, the error is occuring where you stated cas. I see where I put the int when I prob shouldn't. Here is the previous program I am copying into the new one and making this into a function for the choice menu
Code:
int main() {
//Set the random number
srand(time(0));
int i, num1, num2;
int answer, guess, problems;
num1 = rand()%50+1;
num2 = rand()%50+1;
//Answer to the random numbers generated
answer = num1*num2;
//Get user input for how many problems they want to do
printf("How many problems do you want?\n");
scanf("%d", &problems);
//Starts the time for working on problems
int start = time(0);
I still get the error, I suck so much when it comes to dealing with rand and srand. I have even read the "Eternally confused - using rand()" because even with this it would keep generating the same 2 numbers to multiply by.