Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

write c++ program that will use three functions int factorial(); int prime (); v

ID: 3618434 • Letter: W

Question

write c++ program that will use three functions int factorial(); int prime (); void starprint(); the displayed menu should allow the user to selectoption 1)if user Enter 1 it should take number from user thenthen it should call factorial function to calculate factorial ofthat number 2) if user Enter 2 it should display first 100 primenumbers using function int prime(); 3) if user enter 3 it should call function void starprint();and should display the following     *     **     ***     ****     ***** write c++ program that will use three functions int factorial(); int prime (); void starprint(); the displayed menu should allow the user to selectoption 1)if user Enter 1 it should take number from user thenthen it should call factorial function to calculate factorial ofthat number 2) if user Enter 2 it should display first 100 primenumbers using function int prime(); 3) if user enter 3 it should call function void starprint();and should display the following     *     **     ***     ****     *****

Explanation / Answer

please rate - thanks the above code is correct, but instead of finding the first 100prime numbers, it finds the prime numbers for the numbers to100 I have changed that code to find the 1st 100 prime numbers #include using namespace std; int prime(int n); void starPrint(); int factorial(int n); int main() { int choice; int num,j,i; //displaying menu cout