public static void main(String[] args) { int f = 0; int g = 1; for(int i = 1; i <= 10; i++) { System.out.print(f + " "); f = f + g; g = f - g; } System.out.println(); }
Subscribe to:
Post Comments (Atom)
-
via:: javarevisited.blogspot.com When does NullPointerException occurs in Java Javadoc of java.lang.NullPointerException has out...
-
EJB Interview Question and Answer Question1: What do you mean by EJB? Ans: Most of the time this EJB interview questions is the...
No comments:
Post a Comment