Look up the do-while loop.

scanf() if it encounters an error reading an int, will leave data that causes the error to be read next time. That will cause the next call of scanf(), if it is...