i need help with while loop

Ok so I need to create a string data while loop that just repeats what you type.But I need it to only loop a certain number of times. like say 8 times I have no idea how to set the number of times it loops. Thanks guys, your a big help
1
2
3
4
5
int N=0;
while(N<8){
       N++;
      // do stuff here
}


here
Topic archived. No new replies allowed.