Thanks! How about re-writing this While loop into a for loop? I'm currently studying for a quiz and wasn't really sure on these.
1 2 3 4 5 6 7
|
int s = 0;
while (s <= 10) {
cout << s << “ “;
s = s + 1;
}
|
Last edited on
Thanks, your help is very much appreciated!