please if you have spear time help me i would love to learn more since i am new...

#define MAX 100 #include <iostream> #include <time.h> #include <stdlib.h> int number(); int input(int); int display(int,int, int); int input(); long solve(int, int, int); void displayquestion(int, int, int); int agian = 'y'; long solve(int numA, int numB, int opbrt) { long answer; if (opbrt == 1) answer = numA + numB; if (opbrt == 2) answer = numA - numB; if (opbrt == 3) answer = numA * numB; if (opbrt == 4) answer = numA / numB; if (opbrt >= 5 || opbrt <=0) { std::cout << "INVALID CHOICE"; opbrt = 1; answer = numA + numB; } return (answer); } void displayquestion(int numA, int numB, int opbrt) { if (opbrt == 1) std::cout << numA << "+" << numB; if (opbrt == 2) std::cout << numA << "-" << numB; if (opbrt == 3) std::cout << numA << "*" << numB; if (opbrt == 4) std::cout << numA << "/" << numB; std::cout << " "; } int number() { long randomn; randomn = rand()%MAX+1; return (randomn); } int input() { int opbrt; std::cin >> opbrt; return (opbrt); } int main() { std::cout << "\n\n\n\tHello There!!!\n\t"; std::cout << "Let's Solve Some Math Problems...\n\t"; std::cout << "\nNow, Would You Like...\n\t"; std::cout << "1 = Addition\n\t2 = Subtraction\n\t"; std::cout << "3 = Multiplication\n\t4 = Division\n\n"; std::cout << "Enter The Number Of The Type of Problem You Want\n"; int numA = 14, numB = 14; void greedings(); int opbrt = input(); numA = number(); numB = number(); display(numA, numB, opbrt); return 0; } int display(int numA, int numB, int opbrt) { long input = 0; long answer; answer = solve(numA, numB, opbrt); std::cout << "\n\n\t"; std::cout << "What is...\n\n\t"; displayquestion(numA, numB, opbrt); std::cin >> input; if (input == answer) { std::cout << "\n\n\tCORRECT!!! YOU ARE SMART, THE ANSWER"; std::cout << " IS " << answer << "\n"; } else { std::cout << "\n\n\n\tI'M SORRY, THAT IS NOT CORRECT"; std::cout << ", THE CORRECT ANSWER IS " << answer; } std::cout << "PLAY AGIAN??? (Y/N)"; std::cin >> agian; return 0; }