After getting input, How the method finds the elements with repetition and number of times each element is repeated with in the array of integer (int a[10])?
it means that our loop never found input in array. This is because all the condition of loop is true (remember logic table of and / &&)
*/ else /* ADD YOUR CODE HERE:
it means that our loop is break in middle of operation so the value of i is never achieve 10. This is done because there are at least 1 condition which get false as the loop operate.
Comments
Searching the element which is same with input
int i=0;
while((i<10) && (a[i] != input)) i++;
if(i == 10)
/*
ADD YOUR CODE HERE:
it means that our loop never found input in array. This is because all the condition of loop is true (remember logic table of and / &&)
*/
else
/*
ADD YOUR CODE HERE:
it means that our loop is break in middle of operation so the value of i is never achieve 10. This is done because there are at least 1 condition which get false as the loop operate.
*/