Question: (in JAVA) Write a static method that returns a string with Fibonacci numbers in a triangle (starting from the 2nd 1, so 1, 2, 3,

(in JAVA)
Write a static method that returns a string with Fibonacci numbers in a triangle (starting from the 2nd 1, so 1, 2, 3, 5, 8, etc.). The method parameter should be the height of the triangle. In main, take in user input for the height and print out the triangle. Enter the # of fibonacci numbers: 10 1 2 2 3 3 3 5 5 5 5 Sample output: 8 8 8 8 8 13 13 13 13 13 13 21 21 21 21 21 21 21 34 34 34 34 34 34 34 34 55 55 55 55 55 55 55 55 55 89 89 89 89 89 89 89 89 89 89
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
