Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class uppg4_moment5
- {
- public static void main(String[] args)
- {
- int f = 0;
- int g = 1;
- for(int i = 1; i <= 20; i++)
- {
- System.out.print(f + " ");
- f = f + g;
- g = f - g;
- }
- System.out.println();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement