test

1 class Fibonaccidevioktaviani {
02     public static void main(String[] args) {
03         int A=1;
04         int B=1;
05         int n=20;
06         System.out.println(A+" ");
07         for (int i=1;i<n;i++){
08             System.out.println(B+" ");
09             B=A+B;
10             A=B-A;
11
12         }
13         System.out.println("");
14         System.out.println(devi oktaviani");
15     }
16 }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s