zoey101's Profile
Reputation: 1
Apprentice
- Group:
- Members
- Active Posts:
- 21 (0.05 per day)
- Joined:
- 13-April 12
- Profile Views:
- 265
- Last Active:
May 19 2012 09:13 PM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: How to delete my "dreamincode" account?
Posted 19 May 2012
-
In Topic: [C++] Harmonic Series
Posted 19 May 2012
SORRY FOR THE CONFUSION
THIS IS THE QUESTION:
In mathematics, the Nth harmonic number is defined to be 1 + 1/2 + 1/3 + 1/4 + ... + 1/N. So, the first harmonic number is 1, the second is 1.5, the third is 1.83333... and so on. Write an expression whose value is the 8th harmonic number.
THIS IS WHAT I HAVE COME UP WITH SO FAR:
#include<iostream> using namespace std; int main() { double sum=( sum=1/(n+1) [THIS IS WHERE I'M HAVING PROBLEMS IN I'M NOT SURE IF IT'S RIGHT OR NO BECAUSE WHEN I PUT IT IN IT COMES UP WITH ERRORS] ); cout << sum << endl; return 0;
} -
In Topic: [C++] Harmonic Series
Posted 19 May 2012
i think it should be this:
sum+((float)1/i);
but when i inserted it it comes up with errors -
In Topic: [C++] Harmonic Series
Posted 19 May 2012
#include<iostream> using namespace std; int main() { double sum=( MIDDLE (I DON;T NO WHT DOES HERE) ); cout << sum << endl; return 0; }
PLEASE IGNORE THE QUESTION ABOVE I MISTAKLY PUTTED THAT INSTEAD OF THIS QUESTION -
In Topic: [C++] Harmonic Series
Posted 19 May 2012
SORRI THIS IS THE RIGHT QUESTION:
In mathematics, the Nth harmonic number is defined to be 1 + 1/2 + 1/3 + 1/4 + ... + 1/N. So, the first harmonic number is 1, the second is 1.5, the third is 1.83333... and so on. Write an expression whose value is the 8th harmonic number.
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
Friends
zoey101 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
zoey101 has no profile comments yet. Why not say hello?