Question: C++ Problem 1 Fibonacci Prime 18 points th number as argument. The function will calculate the nth number in the Fibonacci sequence (starting with 0
Problem 1 Fibonacci Prime 18 points th number as argument. The function will calculate the nth number in the Fibonacci sequence (starting with 0 and 1) that is also a prime number. Create a second function that prompts a user to enter a positive number. If a negative number was entered, it prompts again until a positive number is entered. The entered number is returned by the function. Use both functions in the main to get a valid number n from the user, determine the n number and print it to the console. Example: Input: -7 Input (0) -3 Input 0):4 4th Fibonacci prime: 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
