#include
#include
#include
void additionPractice(int n, int arr[]){
int random1, random2, randomAns;
int ans;
int num1[n], num2[n], finalNum[n], inputNum[n];
srand(time(NULL));
random1 = (rand()%101) + 1;
random2 = (rand()%101) + 1;
randomAns = random1 + random2;
printf(“%d. %d + %d = \n”, n, random1, random2);
// num1[n]=random1;
// num2[n]=random2;
// finalNum[n]= randomAns;
int keep_going=1;
while(keep_going==1){
printf(“Enter your answer: “);
scanf(“%d”,&ans);
keep_going=0;
// inputNum[n]=ans;
// if(ans == randomAns){
//// responsesToCorrectAnswer();
// printf(“correct answer\n”);
// keep_going=0;
// }else{
//// responsesToIncorrectAnswer();
// printf(“Incorrect answer\n”);
// }
}
arr[0]=random1;
arr[1]=random2;
arr[2]=randomAns;
arr[3]=ans;
}
void subtractionPractice(int n, int arr[]){
int random1, random2, randomAns;
int ans, temp;
srand(time(NULL));
random1 = (rand()%101) + 1;
random2 = (rand()%101) + 1;
if(random1