You are given three numbers. Your task is to determine whether they form an arithmetic progression (AP), meaning the difference between consecutive terms is constant.
Print Yes if the numbers form an arithmetic progression; otherwise, print No.
Input: a = 2, b = 4, c = 6
Output: Yes
Explanation: The common difference is 2 throughout.
Input: a = 1, b = 3, c = 6
Output: No
Explanation: The differences 2 and 3 are not equal.
Input: a = 5, b = 5, c = 5
Output: Yes
Explanation: A constant sequence has a common difference of 0.
Sign in to write, run, and submit your solution against the full test suite.