Question: C++ function Array: Write a Boolean function, f 4prime(x). to check if an integer x is prime or not. Then use this function in main()
C++ function Array: Write a Boolean function, f 4prime(x). to check if an integer x is prime or not. Then use this function in main() to find all the primes between 100 and 150 and store them in an array a4[]. Then using fPrintArray function print this array. Note that you will have to track the number of primes to know the length of the array to use in the fPrintArray function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
