I wand to find a program that calculates the sum of fractions:
1/1 + ½ +1/3 +1/4 + 1/5 + .. + 1/100
I wand to find a program that calculates the sum of fractions:
1/1 + ½ +1/3 +1/4 + 1/5 + .. + 1/100
Why not write the program yourself?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
Do you have an actual question or are you hinting that your web-search-fu skills need some help?
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
If that's all you want, then you can do it in a simple spreadsheet program.
"find" a program?
Have you tried looking down the back of the settee, or perhaps underneath the bed?
Announcements - C Programming
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Use a for loop
In the TODO part you should be able to "find" a statement such that your sum variable is updated to a new sum based on the current value of denom.Code:for (int denom=1; denom <= 100; denom++) { // TODO }
What do you mean "find" a program? Are you trying to find someone to write a program for you?