>I wrote this code, but it didn't change anything
You can't
compile this code, that's why it didn't change anything: the
else alternative has no correspondent if! Didn't you see it?
What did you want to achieve with so strange
a[i] == 8 || a[i] == 9 condition?
It's a very simple assignment. Please, think again then caome back with a proper code tag:
[code=c]
source
[/code]
Or search DaniWeb more carefully: there are lots of right solutions of this assignment
Reputation Points: 1234
Solved Threads: 347
Postaholic
Offline 2,001 posts
since Jul 2008