fb pixel

Is this an arithmetic progression?

Given 3 numbers a, b, and c your task is to determine if those 3 numbers could form an arithmetic progression. Print arithmetic progression in case those 3 numbers could be part of an arithmetic progression and no pattern found otherwise.
Input
Output
1 2 3
arithmetic progression
1 2 2
no pattern found
 
 
To check your solution you need to sign in
Sign in to continue