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...
-
via MKYONG UserStatus.java – User’s status in enum structure package com.mkyong; public enum UserStatus { PENDING("P...
No comments:
Post a Comment