public class Fibonacci{ public static void main(String[] args){ int current = 1; int previous = 0; int temp =0; while (current<50){ temp = current; System.out.println(current); current = previous + current; previous = temp; } } }
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments