How to illustrate a do-while loop
To illustrate a do-while loop
#include
main ()
{
int decision;
do
{
cout<<"\n 1 = Boon Eng";
cout<<"\n 2 = Pearly ";
cout<<"\n 3 = Sandy ";
cout<<"\n\n\n Make A choice Today !! Besh :";
cin>> decision;
}while (decision >1 && decision <3);
return 0;
}
No comments:
Post a Comment