Pls Explain how to do this.
All you need to do is iterate through the array and increment a count varaible whenever you find an element between the range j to k. check the code below.
int count = 0;
Thanx all..:)got it now..i didnt understand the last two lines in the answer given by ME team. pls explain last two lines..