Arithmetic and Geometric Progression

Learn to determine arithmetic and geometric progressions.


Write two programs to determine if the integers in an array follow either an arithmetic or geometric progression.

1. isAP ( )

An arithmetic progression is one where the difference between each successive pair of integers is constant.


In the array [2, 4, 6, 8] the difference between the integers is always 2.

Get hands-on with 1200+ tech skills courses.