The version or
The games development company "Fundames"
has developed a balloon shooter game. The
balloons are arranged in a linear sequence and
each balloon has a number associated with it.
The numbers on the balloons are in fibonacci
series. In the game the player
shoots 'K
balloons. The player's score is the sum of
numbers on the K balloons write an algorithm to generate the players score
input
the input consist of an integer - numBallons representing the total no of balloons shot by the player(k)
Answers
Answered by
19
Answer:
MARK ME AS BRAINLIST PLS
Explanation:
MARK ME AS BRAINLIST
Answered by
0
Every ballon has a number associated with it so let's start with 0.
The sum of the numbers of the k balloons is nothing but, the sum of the fibonacci series.
Explanation:
1. Start.
2. Declare the variables as i, a,b , show
3.Initialize the variables, a=0, b=1, and show =0
4. Enter the number of terms of the Fibonacci series to be printed
5.Print the First two terms of series
Use loop for the and perform
show=a+b
a=b
b=show
increase value of i each time by 1
6.print the value of show
7.End
Similar questions