C # program to change one element of an array such that the resulting array is in arithmetic progression .
using System ; public class AP { static void makeAP ( int [ ] arr , int n ) { int initial_term , common_difference ;