5
Contributors
7
Replies
8
Views
6 Years
Discussion Span
Last Post by Onlineshade
0

how can use the while loop to print my name 10 times

Have you studied your text book about loops? If not then you should do so now. You will have to create an int variable that will be used to count from 0 to 10.

-4

int num = 0;

while(num != 10)
{     cout << "your name goes here" << endl;
      num++;
}
Votes + Comments
Dont go to code directly.Give him a chance to try this.
Good job on doing this guy's homework... poorly
0

You should read a book or watch some tutorials, its something basic and wont be hard to learn.

0

Is it so tough uaremine?
Do you have any book for basic operations?
Do you have try any? If not, try some thing and post the code.

0

If you cant do your code using while loop you can use another loops. But you have to try some codes. Is it clear?
Thank you.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.