HOME
JAVA
JUST FREE KNOWLEDGE
22:40
Fibonacci
Posted by Mitesh Patel
|
class FiboExample {
public static void main(String args[]) {
int first = 0 , second = 1 ,third;
int i;
for(i=1;i<=15;i++)
{
System.out.println(" " + second);
third = first + second;
first = second;
second = third;
}
}
}
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About me
Home
Text
Pages
JAVA
About Me
Mitesh Patel
I am Mitesh Patel This Blogs is provides to all ppt and some type of documents for SIBM students and other also.
View my complete profile
Followers
search this blog
Blog Archive
▼
2011
(22)
▼
October
(22)
Image change with enter postion no
Shape and With color
Private Method
Interface
Fibonacci
Add Array
Abstract class
Prime Number
Double Array
Palindrome
Method Overloading
Inheritance
Nesting Method
Array
command line arguments
Looping
Multiple Class
Simple Class
ODD and EVEN
Max and Min Number
My First Java
Java Project Free
Powered by
Blogger
.
0 comments:
Post a Comment