Question: Write a bubble sort function in C language to sort an array passed from main function. Then write a function FindPrime that finds a prime
Write a bubble sort function in "C" language to sort an array passed from main function. Then write a function FindPrime that finds a prime number in an array that contains following elements 13,7,1,15,10,8,2,9,3,12,4,11,5,14,6 .
FindPrime function receives two arrays as parameters from main function and stores the prime numbers found in first array into second array. Then call a factorial function from main function that receives second array holding prime numbers. The factorial function then displays the factorial of each prime number in array.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
