The Fibonacci sequence defined by
where the term is given by
Code has already been provided to define a function named fibGenerator that accepts a single input value into the variable N. Add code to the function that uses a for loop to generate the term in the sequence and assign this value to the output variable fib with an unsigned 32-bit integer datatype. Assume the input N will always be greater than or equal to 3.
Note the value of N is defined as an input to the funciton. Do not overwrite this value in your code. Be sure to assign values to each of the function output variables.
Use a for loop in your solution.