problem 1) prepare a function that takes one integer argument and returns its square.
problem 2) prepare a function to find out the cube of a number.
problem 3) prepare a function to find out the area of a circle where radius is passed to the function as argument.
problem 4) prepare a function to find out the area of a rectangle where length and breadth are passed to the function as argument.
problem 5) prepare a function that has three arguments principle, rate and time and returns the simple interest.
problem 6) prepare a function that accepts a character as argument and returns its ASCII value.
problem 7) prepare a function to swap the values of two integer variables
(i) Using Extra variable
(ii) Without using extra variable.
problem 8) prepare a function that has one integer argument and returns 0 if number is even else returns 1.
problem 9) prepare a function that has one character argument and displays that it’s a small letter, capital letter, a digit or a special symbol.
problem 10) prepare a function to print the sum and average of first n natural numbers where n is passed to the function as argument.