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 :)
Re: How do print a mathematical series on the screen using c++
Quote:
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