Can you tell why I am getting wrong answer
hello @akash_281
a)

start i from i.
also use <= in place of <
b)

here it should be a[i]>=a[i+1];
same with dec[i]=dec[i+1]+1;
c) also check value of n and declare ur size of array greater than that
hello @akash_281
a)

start i from i.
also use <= in place of <
b)

here it should be a[i]>=a[i+1];
same with dec[i]=dec[i+1]+1;
c) also check value of n and declare ur size of array greater than that