I have to write a basic program asking for user input for a grade and then displaying the grades of the class using Z as a sentinel.
How do you make Do while loops and while loops in C++?
to write a do while loop in C++ :
do
{
place statements that you want to do
}while (conditions to tell the loop to stop)
to write a while loop statement in C++ :
while(conditions to tell the loop when to stop)
{
statements you want to execute within the loop
}
neutral skin tone
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment