|
Re: find out the average of odd numbers -do-while statement.
your code is quite right but the question says given by the user. ending with an odd no is not provided for, so the while statement should read x<=y; so as 2 test d last number, in case its odd.
|