An arithmetics series is defind by: a + (a + d) + (a + 2d) + (a + 3d) +....+([(a+(n-1)d)
where is the first term,d is the"common difference,",and n is the number of term to be added. using this information, write a program that consist of a function called arithmetic_series() that accept the value of
a,d and n as parameter and display each term and determine the sum of the arithmetic series having a=3 , d=5, and n=1
Comments
Leave a comment