User Review - Flag as inappropriate
An arithmetic series is defined by the following:
a + (a + d) + (a + 2d) + (a + 3d) + ... + [a + (n - 1)d]
a is the first term d is the common difference
n is the number of term to be added
Using this information , write a C++ program that uses a while loop to display each term and determine the sum of the arithmetic series.Make sure your program gets the value of a, d, and n from the user.