Question: 1.) In the pseudocode below: Module fibo(Integer n) Declare Integer first = 1 Declare Integer second = 1 Declare Integer next = 0 Declare Integer
1.) In the pseudocode below:
Module fibo(Integer n) Declare Integer first = 1 Declare Integer second = 1 Declare Integer next = 0 Declare Integer counter = 0 While counter < n Set counter = counter + 1 Set next = first + second Set first = second Set second = next Display next End While End Module
What will be the output from calling fibo(5) (separate each output with a single space)?
2.)
|
|
3.)
The order (sequence) of statements in a program is:
| Never important. | |
| Always important. | |
| Sometimes important. |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
