You will need to add a loop - probably a
for
loop is best:
C For Loop[
^]
But I'd suggest you start by reading your homework question again carefully and trying to work out manually what you are expected to get as output - the question as stated here makes very little sense since
x
can never be unequal to itself.
That's like saying "where 6 is equal to 6"! It is always true, so it's irrelevant.