Qus:    How do I generate fibonacci series in webMethods?
Mar 06, 2021 09:46 1 Answers Views: 157 SWEETY
Prev Next
Answers (1)
SHIVA Mar 08, 2021 08:40
Answer:   As per java I would like to explain so it will raise up some clarification in mind
JAVA:-
public class MainClass {
public static long fibonacci(long number) {
if ((number == 0) || (number == 1))
return number;
else
return fibonacci(number - 1) + fibonacci(number - 2);
}
public static void main(String[] args) {
for (int counter = 0; counter

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect