1. No need of semi colon. The corrected toop is given below
while (test condition)
{
}
2. In do … while loop the while must be end with semicolon.
do (condition)
{
}
while;
3. switch contains expression instead of condition switch(expression)
{
Case 1:
Case 2
Case 3:
Case 4:
}