Question: Write a function that takes two numbers as parameters and returns their LCM. 9. Write a function that checks if a number is prime or

Write a function that takes two numbers as parameters and returns their LCM. 9. Write a function that checks if a number is prime or not. If the number is prime the function returns true, otherwise false. Also try functions for checking perfect numbers and palindromes. 10. Write a function that sorts an array of numbers. In the main function, first create and print the unsorted array, then use the function to sort the array, then print the sorted array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
