Sekarang Kita akan membuat Bilangan Fibonaci yang Angkanya di bawah 20
Ni Listing Codingnya:
class Fibonacci {
public static void main(String[] arg) {
int A=1;
int B=1;
System.out.println(A);
while (B<20) {
System.out.println(B);
B=A+B;
A=B-A;
}
}
}
FB
Java Membuat Bilangan Fibonacci
Sunday, March 14, 2010
Labels:
Java,
Pemrograman
Posted by
Rangga Pratama
at
8:58 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment