Monday, December 10, 2007

How to illustrate a do-while loop

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: