Monday, December 10, 2007

How to display a word using do-while loops

How to display a word using do-while loops

To display a word using do-while loops

#include

int main()

{

int how;

cout << "How many i love you, you want to display? ?: ";

cin >> how;

while (how > 0)

{ cout << "i Love You!\n";

how--;

}

return 0;

}

Result :

No comments: