1. Write a function that is passed a single integer and then calculates the factorial of that number. A factorial is the product of the integer times all of the integers below it stopping at 1. So n!= n*(n-1)*(n-2).......3.2.1
If the user programmer passes 0 the function should return 1. If they pass a number less than 0 the function should return -1.
2. Write a functions that takes an array of doubles and the number of elements in the array as parameters.The function then searches the array for the largest value. It retuens this value.