...

/

Arithmetic and Geometric Progression

Arithmetic and Geometric Progression

Learn to determine arithmetic and geometric progressions.

Challenge

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 ...