English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how to write a program to print the first 'n' terms of the fibonacci numbers using the 'for loop'????

2007-03-12 04:11:03 · 2 answers · asked by karthic 3 in Computers & Internet Programming & Design

fibonacci = 0, 1, 1, 2, 3, 5, 8, 13, 21.................

where the every third number is the sum of the first two number
eq: 0+1=[1], 1+1=[2], 2+1=[3]..........

2007-03-12 04:20:59 · update #1

ive only been learnin JAVA for 2 months now............. nd iam like supposd to dis fibonacci crap................................. aim juss freakin 14!!!!!

2007-03-12 04:25:49 · update #2

2 answers

You really need to actually program this. it's pretty basic and if you don't do it you will be lost in programming forever. Everyone has to do this, it's not that bad once you get into it. If you get stuck, ask your TA.

2007-03-12 04:19:27 · answer #1 · answered by ToSunnyMexico 5 · 0 1

I want to Answer your question in a simple way.Hope you understand.
Lets start making tea .What do you think you need to know to do that ?
First you need to know What tea is,then sugar ,then milk, then a stove and then the process of how to make tea.
Got the Point ? BLUEJ is a Built over Java to help students ready for Industry and get the Productivity of Companies to start rolling. Before you start anything try to grasp what is the improtance of it and then go ahead. In your question itself you say how to write java code !!
Learn that First. ..Once thats done ..rest all is piece of Cake with some documentation and Practice.
Neither me or anyone can make you a programmer. Its built in you. Just let it get out.
Good Luck.

2007-03-12 04:22:12 · answer #2 · answered by Satya 3 · 0 0

fedest.com, questions and answers