void main ( void ); { /************************************ * * * Define a variable i * * * ************************************/ unsigned int i; /************************************ * * * Start of loop * * * ************************************/ for ( i = 10 ; i > = 0 ; i = i - 1 ) { /************************************ * * * Add one to i * * * ************************************/ i=i+1; } what is wrong ??????????
Look carefully at the value of your variable 'i'. What are you expecting it to do? Is it doing what you expect it to do?
And, how do you expect it to exit the loop (hint: check the method of loop exit).