Question: using c++ language Output Fibonacci Numbers Problem 2 Fibonacci numbers are a sequence of numbers where each number is represented by the sum of the

using c++ language
Output Fibonacci Numbers Problem 2 Fibonacci numbers are a sequence of numbers where each number is represented by the sum of the two preceding numbers, starting with 0 and 1: 0, 1, 1, 2, 3, 5, 8, etc. Write a program that prompts the user for a positive integer and prints out whether or not that integer is a Fibonacci number. The program terminates when -1 is entered Assignment 5 Create a method with the following signature. The method tests whether the number passed to it is a Fibonacci number or not. Itreturns true if the number is indeed a Fibonacci number and it returns false otherwise. bool is Fibonaccifint number) Example:Input: 21 Output: 21 is a Fibonacci number Input: 9 Output: 9 is not a Fibonacci number Input: -1 Goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
