You have to put a ";" at the end of the do....while(condtion) loop.
http://www.cprogramming.com/tutorial/lesson3.html