Condition to check if the sequence form Geometric Progression
else if ( checkIsHP ( arr , n ) ) { System . out . println ( " Geometric ▁ Progression " ) ; flag = 1 ; } else if ( flag == 0 ) { System . out . println ( " No " ) ; } }