Arithmetic Progression C Program

C Program To Calculate Arithmetic Progression

What is Arithmetic Progression?

An arithmetic sequence or arithmetic progression is a series of numbers arranged in a way that the difference between any two consecutive terms is constant.

In an arithmetic progression series, every consecutive element has a Constant difference between any two terms from the series. This means that the preceding term and the following terms will have the same difference.

In other words, an arithmetic progression is a series in which every next term after the first term is computed by adding the common difference (entered by the user) and preceding term.

Let’s assume that the first term is A and the common difference is D. Therefore, the terms in an arithmetic series will be as follows:

A, A + 1D, A +2D, A+ 3D

The Nth Term will be A + (N – 1)*D

Example For Arithmetic Series

1 5 9 13 17 21 25

Arithmetic Sequence Formula

AN = A1 + (N – 1)D

Note: This C program for arithmetic progression is compiled with GNU GCC compiler on Linux Ubuntu operating system. However, it is compatible with all other operating systems.

Output

Let’s discuss more on how to calculate arithmetic progression in C programming in the comment section below if you have any compilation errors and any doubts about the same. For more information on arithmetic sequences, check Wikipedia.