employer cover photo
employer logo
employer logo

3dplm Software Solution

Is this your company?

3dplm Software Solution Interview Question

2. Given a number, give its fibonacii series. Write a program in Java.

Interview Answer

Anonymous

Apr 24, 2019

public static void main(String[] args) { int result = 0; int next = 1; int prev = 0; for (int i =0; i<=10; i++){ result = prev + next; prev = next; next = result; System.out.println(result); }