Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

fibonecii series in C++

This is a discussion on fibonecii series in C++ within the C and C++ forums, part of the Software Development category; when we display the series as 0,1,1,2...34 after that how we calculate the sum and average of this fibonecii seris...

Go Back   Geeks Talk > Software Development > C and C++
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 09-08-2009
Junior Member
 
Join Date: Jul 2009
Location: India
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
vedantv23 is on a distinguished road
Smile fibonecii series in C++

when we display the series as 0,1,1,2...34 after that how we calculate the sum and average of this fibonecii seris
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-29-2009
Expert Member
 
Join Date: Dec 2006
Location: Chennai
Posts: 203
Thanks: 2
Thanked 17 Times in 15 Posts
Barbie is on a distinguished road
Re: fibonecii series in C++

i = 0;
sum = 0;
n = 0;

while (i <= 34)
{
printf ("%d",i);
j = i;
i = i + j;
n++;
sum = sum + i;
}

printf("Sum is %d",sum);
printf("Avg is %f",sum/n);
Reply With Quote
  #3 (permalink)  
Old 10-18-2009
Banned
 
Join Date: Oct 2009
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
rjroking is on a distinguished road
Re: fibonecii series in C++

do u k9 how to build the same in c#
Reply With Quote
Reply

  Geeks Talk > Software Development > C and C++

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Number Series [2].... psuresh1982 Brainteasers 14 07-09-2009 09:30 AM
Complete the Series Manojks Brainteasers 31 10-13-2008 12:22 PM
what comes next in this series..... psuresh1982 Brainteasers 13 02-15-2007 04:46 AM
series... anchal gupta Brainteasers 10 01-12-2007 07:54 AM
Number series [1].... psuresh1982 Brainteasers 8 01-10-2007 01:28 AM


All times are GMT -4. The time now is 04:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved