-
November 24th, 2013, 12:00 PM
#1
How do print a mathematical series on the screen using c++
Hello Everyone
This my first thread.I came here in search of a simple question but appears very hard to me.How do I print a mathematical series such as
1 + 2/2! - 3/3! + ...... n/n! //n is read from user
Not only we need to print the series on the screen but at the same time find the sum using simple loops.Thank you everyone.
*just a beginner here
-
November 24th, 2013, 02:36 PM
#2
Re: How do print a mathematical series on the screen using c++
Originally Posted by biswajitneog
Hello Everyone
This my first thread.I came here in search of a simple question but appears very hard to me.How do I print a mathematical series such as
1 + 2/2! - 3/3! + ...... n/n! //n is read from user
Not only we need to print the series on the screen but at the same time find the sum using simple loops.Thank you everyone.
You "print" by using cout. You calculate a sum by using a loop, adding to a total that initially starts at 0.
Regards,
Paul McKenzie
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|