subject

Consider the following function: int func(int x){
if (x == 0)
return;
else if (x == 1)
return 3;
else
return (func(x - 1) + func(x - 2));
}
What is the output of func(4)?

Answer correct:

A)13

B)16

C)19

D)21

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 14:30
The option enables you to modify a slide element in most presentation applications.
Answers: 2
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
How can we take picture in this app
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Nikki sent flyers in the mail to all houses within the city limits promoting her computer repair service what type of promotion is this and example of
Answers: 1
You know the right answer?
Consider the following function: int func(int x){
if (x == 0)
return;
else if (x...
Questions
question
Mathematics, 19.06.2020 11:57
question
Mathematics, 19.06.2020 12:57
question
Mathematics, 19.06.2020 12:57