CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2013
    Posts
    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

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: How do print a mathematical series on the screen using c++

    Quote Originally Posted by biswajitneog View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured