CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Yes or No ?

The yesno function allows you to obtain a "yes or no" answer from the user.

how do you use it?

<variable> = yesno(<question>);
while ( yesno( <question> ) ) <statement>
//c3store2.cpp
 
do
{
...
}
while (yesno("Do you want to continue?"));