Mistake in my code

hi shiva
don’t declare the arry of size of 1000 instead declare it of the size ‘n’
int a[n] because it is not specified that the array will contain only upto 1000 elements. it can contain more than that also