Question: ES2513 Loop Exercise: 1. Write a function to estimate In(2) given the input is the loop trip count. Function estLn2( Dim total As Double, kount
ES2513 Loop Exercise: 1. Write a function to estimate In(2) given the input is the loop trip count. Function estLn2( Dim total As Double, kount as Long total For As Long) As To Step Next- estin2 End Function 2. Trace the fib function for nth 5. Function fib( nth As Long) As Long Dim fn As Long, fnm1 As Long, fnm2 As Long, ik As Long fib 1 fnm1-1 fnm2 1 For ik 3 To nth Step 1 fib = fnm1 + fnm2 fnm2 fnm1 fnm1- fib Next ik End Function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
