Condition to check if the sequence form Geometric Progression
else if ( checkIsHP ( arr , n ) ) { cout << " Geometric ▁ Progression " << endl ; flag = 1 ; } else if ( flag == 0 ) { cout << " No " ; } }