hello @preetham31
a) use given n to declare array size
b) use >= in place of > for comparision
can i get an modified code,not esolved yet