I absolutly do not have a clue what where your idea was. But it dint work
And you literally copied my code with no signature and the comment within if statment could imply only to my code, but will totally be invalid to your version. And you should know why. Perhaps be good idea to remove it.Code:int val; while( i++ < count) { if( scanf( " %d", &val) == 0 )
ssharish