(Extra credit worth 30 points) Write a recursive function th…

(Extra credit worth 30 points) Write a recursive function that prints out all the even numbers between x and y inclusive.If x is odd, then the print out will start at x + 1.If y is odd, then the last print out will be y – 1.  Assume x is always lower than y.

Write a function that takes an input integer N > 0 and print…

Write a function that takes an input integer N > 0 and prints the following pattern. See some print examples below for different values of N. If N=1, output is 1 If N=2, output is 1 2   1 If N=3, output is 1 2 3     2 1     1 If N=4, output is 1 2 3 4       3 2 1     1 2       1 If N=5, output is 1 2 3 4 5         4 3 2 1     1 2 3         2 1         1