Functions Program
1.Create and call a simple function
Write a program with a function that prints “Hello, World!” when called from main().
2.Function to add two numbers
Write a function that takes two numbers as arguments and returns their sum.
3.Function to find the maximum of three numbers
Write a function that takes three numbers as arguments and returns the largest.
4.Check if a number is even or odd using a function
Write a function that checks whether a number is even or odd.
5.Factorial using a function
Write a function that calculates the factorial of a number and returns it.
6.Check if a number is prime using a function
Write a function that checks if the given number is a prime number.
7.Swap two numbers using a function
Write a function to swap two values using call by reference.
8.Fibonacci series using a function
Write a function that prints the Fibonacci series up to N terms.
9.Recursive function to find power
Write a recursive function to calculate the power of a number (e.g., a^b).
10.Recursive function for factorial
Write a recursive function to calculate the factorial of a number.