تبلیغات
پروژه های رایگان برنامه نویسی و آموزش زبان C++ و C# - پروژه فیبوناچی بازگشتی و غیر بازگشتی
 
برنامه بدون خطا رویاست Program is impossible without an error
پروژه های رایگان برنامه نویسی و آموزش زبان C++ و C#
صفحه نخست         تماس با مدیر         پست الکترونیک        RSS         ATOM
 
 

این پروژه سورس سری فیبوناچی می باشد که هم به صورت بازگشتی و هم به صورت معمولی نوشته شده است .

 

#include "iostream.h"
#include "conio.h"

int fib (int);

int i;

main(){
 int n;

 clrscr();
 cout<<"\n Enter a number : ";
 cin>>n;

 cout<<"\n\n value = ";

 if(n==1 || n==2)
  cout<<"0 ";
 else if(n>2)
  cout<<"0 1 ";

 cout<<fib(n);
 getch();
}
//*****************************************
int fib (int n){
 int x=0,y;

 if(n<=1)
  return n;

 x=fib(n-1);
 y=fib(n-2);

 if(i<x){
  cout<<x<<" ";
      i=x;
 }
   return x+y;
}





نوع مطلب : پروژه های برنامه نویسی ++C، 
برچسب ها :
لینک های مرتبط :


دوشنبه 21 آبان 1397 01:46 قبل از ظهر
I think this is among the so much important information for me.
And i'm satisfied studying your article. But wanna remark on few normal issues, The website taste is wonderful, the articles is in reality
nice : D. Just right task, cheers
یکشنبه 20 آبان 1397 12:45 قبل از ظهر
How would you like to lose weight in just three weeks? Take a look at http://destyy.com/wXQe46 and see for yourself how it’s possible.
You’ll lose weight and keep it off following this plan. Remember, losing weight isn’t just for yourself.
You’re also doing it for those who rely on you. Lose weight today and
make sure you’re there for them tomorrow
شنبه 19 آبان 1397 04:18 قبل از ظهر
I truly love your website.. Very nice colors & theme.
Did you make this site yourself? Please reply back as I'm trying to create my own blog
and would like to know where you got this from or what the theme is called.
Thank you!
جمعه 18 آبان 1397 06:24 قبل از ظهر
Thanks for sharing your thoughts on پروژه. Regards
چهارشنبه 16 آبان 1397 10:51 بعد از ظهر
Every guy needs to know a cam girl like http://www.camgirl.pw/wildtequilla/ She is a doll.

You’ll have a whole lot of fun with any girl at this site.
The type of fun that will put a smile on your face for days to come.
چهارشنبه 16 آبان 1397 06:44 قبل از ظهر
Hi there! This post couldn't be written much better!
Looking through this article reminds me of my previous roommate!
He continually kept talking about this. I'll forward this information to him.
Pretty sure he will have a great read. Thank you for sharing!
یکشنبه 13 آبان 1397 06:30 بعد از ظهر
Hi my loved one! I want to say that this post is awesome, nice written and include almost all vital infos. I would like to look extra posts like this .
جمعه 11 آبان 1397 11:43 قبل از ظهر
Hi everyone, it's my first go to see at this web page, and post is in fact fruitful for me, keep up posting these posts.
پنجشنبه 10 آبان 1397 07:39 بعد از ظهر
I'd like to find out more? I'd love to find out more details.
چهارشنبه 9 آبان 1397 11:49 قبل از ظهر
My partner and I absolutely love your blog and find nearly all of your post's to be precisely what I'm looking for. Does one offer guest writers to write content for yourself? I wouldn't mind producing a post or elaborating on a lot of the subjects you write concerning here. Again, awesome site!
سه شنبه 8 آبان 1397 02:29 بعد از ظهر
I was curious if you ever considered changing the page layout of your blog?
Its very well written; I love what youve got to say.
But maybe you could a little more in the way of
content so people could connect with it better. Youve
got an awful lot of text for only having one or 2 images.
Maybe you could space it out better?
سه شنبه 8 آبان 1397 01:53 بعد از ظهر
Nice post. I learn something new and challenging on websites
I stumbleupon everyday. It will always be interesting to read articles from other authors and use something from other sites.
سه شنبه 8 آبان 1397 01:43 بعد از ظهر
Do you mind if I quote a couple of your posts as
long as I provide credit and sources back to your blog?

My website is in the exact same area of interest as yours and
my users would definitely benefit from a lot of the information you present here.
Please let me know if this okay with you. Regards!
سه شنبه 8 آبان 1397 01:37 بعد از ظهر
There is definately a great deal to find out about this topic.
I love all of the points you've made.
سه شنبه 8 آبان 1397 07:29 قبل از ظهر
Hi, i read your blog occasionally and i own a similar one and i was just wondering if you get a lot of spam feedback?

If so how do you stop it, any plugin or anything you can recommend?
I get so much lately it's driving me mad so any assistance is
very much appreciated.
سه شنبه 8 آبان 1397 07:26 قبل از ظهر
Greetings! Very helpful advice within this post!
It's the little changes which will make the biggest changes.
Many thanks for sharing!
سه شنبه 8 آبان 1397 02:38 قبل از ظهر
Hello there, I discovered your web site by the use of Google while searching for a comparable subject, your website
came up, it appears good. I've bookmarked it in my google bookmarks.

Hello there, just become aware of your weblog thru Google, and located that it is really informative.
I am going to be careful for brussels. I'll appreciate should you continue this in future.
A lot of folks can be benefited from your writing.
Cheers!
سه شنبه 8 آبان 1397 01:53 قبل از ظهر
Why users still make use of to read news papers when in this technological globe all is presented on web?
یکشنبه 6 آبان 1397 03:27 بعد از ظهر
Watch this amazing video of Ronaldo saving the
game http://corneey.com/wZLrVn This is why he’s one of the best football players to ever live!
جمعه 4 آبان 1397 05:59 قبل از ظهر
My partner and I stumbled over here different web page andd
thought I should check things out. I like what I see
so i am just following you. Look forward to checking out
your web page for a second time.
پنجشنبه 3 آبان 1397 09:46 قبل از ظهر
I am sure this post has touched all the internet viewers, its
really really nice paragraph on building up new weblog.
پنجشنبه 3 آبان 1397 12:14 قبل از ظهر
Magnificent web site. A lot of helpful information here.
I am sending it to some buddies ans also
sharing in delicious. And of course, thanks
for your sweat!
سه شنبه 24 مهر 1397 10:11 قبل از ظهر
of course like your web-site but you have to take a look at
the spelling on several of your posts. Several of them are rife with spelling issues and I in finding it very troublesome to inform the truth then again I
will certainly come back again.
دوشنبه 23 مهر 1397 06:07 بعد از ظهر
Hello there, I discovered your blog by way off Google whilst searching
for a related matter, your web site got here up, it
appears great. I've bookmarked it in my google bookmarks.

Hello there, just become aware of your weblog via Google, and located that it's really informative.
I'm gonna be careful forr brussels. I will
be grateful should you proceed this in future. Lots of people can bee
benefited from your writing. Cheers!
جمعه 20 مهر 1397 12:39 قبل از ظهر
Admiring the hard work you put into your site and detailed information you offer.
It's awesome to come across a blog very once in a while that isn't the same unwanted rehaashed information. Great read!
I've bookmarked your site and I'm adding your RSS feeds to my Google account.
پنجشنبه 19 مهر 1397 07:33 بعد از ظهر
Hi there, its fastidious paragraph about media
print, we all be familiar with media is a enormous source of data.
پنجشنبه 19 مهر 1397 07:08 بعد از ظهر
Hi there to every one, it's truly a pleasant for me to go to see
this site, it contains important Information.
پنجشنبه 19 مهر 1397 06:30 بعد از ظهر
Hi there, I enjoy reading through your post.
I wanted to write a little comment to support you.
پنجشنبه 19 مهر 1397 06:26 بعد از ظهر
Thank you for the good writeup. It if truth be told was once
a entertainment account it. Glance complex to far brought agreeable from you!

However, how can we be in contact?
پنجشنبه 19 مهر 1397 05:51 بعد از ظهر
Hi, i think that i noticed you visited my blog thus i got here to
return the want?.I'm trying to in finding things to
enhance my web site!I assume its good enough
to make use of a few of your concepts!!
 
لبخندناراحتچشمک
نیشخندبغلسوال
قلبخجالتزبان
ماچتعجبعصبانی
عینکشیطانگریه
خندهقهقههخداحافظ
سبزقهرهورا
دستگلتفکر


نمایش نظرات 1 تا 30
درباره وبلاگ

انجام پروژه های برنامه نویسی سی و سی پلاس پلاس و سی شارپ

انجام پروژه های الکترونیکی و رباتیکی

مدیر وبلاگ : سجاد سلطانی
مطالب اخیر
نویسندگان
جستجو

آمار وبلاگ
کل بازدید :
بازدید امروز :
بازدید دیروز :
بازدید این ماه :
بازدید ماه قبل :
تعداد نویسندگان :
تعداد کل پست ها :
آخرین بازدید :
آخرین بروز رسانی :














free counters