in Education by
Write a program to generate first 20 terms of Fibonacci series and store them in single dimension array. Display the prime Fibonacci numbers from the array Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
Answer: We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy Got it! Sign In Problems Courses Get Hired Discussion Back To Explore Page Midori and chocolates Remainder Evaluation Matching Pair Learning Structs BigInteger Multiply C++ Input / Output Operations on PriorityQueue Addition of Two Numbers Sum of elements in a matrix Sum of Big Integers Maximum Area Rectangle Delete Array Java Collections | Set 7 (LinkedList) 1’s Complement Queue Operations Sort and Reverse Vector Special Series Sum Pair Sum in Vector Set Bits Mean Swap the objects Java Inheritance Maximum money Java Hello World Two Dimensional World Print first letter of every word in the string Red OR Green Back to Front Front to Back Learn to Comment Frequency Game Sum Of Digits Mrs. S- JAVA Bits Set 1 Magic in CPP Queue Push & Pop Odd or Even Learning Macros C++ Generic sort Min Heap implementation Multiplication Table Problem Editorial Submissions Doubt Support Print first n Fibonacci Numbers Basic Accuracy: 22.9% Submissions: 76617 Points: 1 Given a number N, print the first N Fibonacci numbers. Input: The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. The first line of each test case contains the integer N. Output: Print the first n fibonacci numbers with a space between each number. Print the answer for each test case in a new line. Expected Time Complexity: O(N) Expected Auxiliary Space: O(N) Constraints: 1<= T <=100 1<= N <=84 Example: Input: 2 7 5 Output: 1 1 2 3 5 8 13 1 1 2 3 5 Explanation: Some of the numbers of the Fibonacci numbers are 1, 1, 2, 3, 5, 8, 13 ….. (N stars from 1). Company Tags Topic Tags Login to report an issue on this page.

Related questions

0 votes
    write a program to print fibonacci series . write a program to search an element within the array using binary search Select the correct answer from above options...
asked Dec 29, 2021 in Education by JackTerrance
0 votes
    write a program to store 1st 25 prime number in an erray and display it Select the correct answer from above options...
asked Dec 6, 2021 in Education by JackTerrance
0 votes
    write a program to store 1st 25 prime number in an erray and display it Select the correct answer from above options...
asked Dec 5, 2021 in Education by JackTerrance
0 votes
    write a program to store 1st 25 prime number in an erray and display it Select the correct answer from above options...
asked Nov 26, 2021 in Education by JackTerrance
0 votes
    Write a program to generate the following series: 11,22,33,44……………….upto 10 terms. (Note:- it’s is based on Qbasic64) Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Write a program to store 10 names in an array. Arrange these in alphabetical orderby sorting. Print the sorted list. ... , LUCY, etc. Select the correct answer from above options...
asked Dec 12, 2021 in Education by JackTerrance
0 votes
    write a Java program to input 10 non-zero numbers in an array and display the count of even and odd numbers. URGENT! Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length as ... USE ANY INPUT METHOD Select the correct answer from above options...
asked Dec 22, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to find the area and perimeter of a square and rectangle. Store side in s , length ... results in separate lines. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Write a JAVA program to store the marks of any 5 subjects in different variables. Calculate total and average. ... total and average. Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    write a program to create a series object that store the table of number 5 Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    Write an algorithm and draw a flowchart to print prime numbers from 1 to 50 Select the correct answer from above options...
asked Dec 10, 2021 in Education by JackTerrance
...