الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

كود بالجافا The Fibonacci Series

بدأه فلسطين !! في 4 أبريل 2008 · 2 رد · 756 مشاهدة · في JavaSE
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

ا

لسلام عليكم

بس اذا ممكن حد يساعدني بحل هذا السؤال

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

begins with the terms 0 and 1 and has the property that each succeeding term is the sum of the two perceding terms .

1) write a method fibonancci(n) that calculates the nth fibonacci number . incorporate this method into an application that enables the user to enter the value of n .

2) determine the largest fibonacci number that can be displayed on your system .

3) modify the application you wrote in part (a) to use double instead of into to calculate and return fibonacci numbers , and use this modified application to repeat part (b )

تم تعديل هذه المشاركة بواسطة فلسطين !! في 4 أبريل 2008 في 20:59

#2

مافي حد يساعدني

مواضيع مشابهة