Use a DO WHILE loop

Daniweb is not a homework service. Don't expect anyone to do this for you, or you're sure to miss your deadline.

do
{
    your_homework();
} while (in_school)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.