1. In main(), declare a variableN, input an integer less than 10 from standardinput (keyboard). Then, define a function Fibonacci tocalculate the Fibonacci number, which is: 0, 1, 1, 2, 3, 5,8, 13, 21…
E.g. if you enter a 10, yourprogram will report 34
Note:N will be used as an argument of the function. Youare required to use a recursive function tocalculate the result. Finally, return the result to main()function, and output the result in main().
2. In main(), define a two dimensional integer arrayN which has 5 rows and 5 columns, a total of25 integer elements. Initialize the array by generating randomnumbers between 70 and 100 usingfunction rand() and assigning them to the arrayintegers. Then define two arrays: S andA; and use loops to calculate the sum andaverage of the numbers in each row of N(i.e. numbers that have the same row index), assign the results toS and A, respectively.Output S and A results.
To generate the random numberbetween 70 and 100, you can use the following code:
using namespace std;
for(int index=0; index