The code below needs to write “hello world” the screen eight (8) times. You can replace, remove, or add one character in the code. Can you find 2 solutions?
```
int c = 0, t = 9;
while( c < t)
{
cout << “\n hello world”;
++c;
}
```
```
This is a bit simpler than #36. Can change the t = 9 to t = 8
int c = 0, t = 8;
while( c < t)
{
cout << "\n hello world";
++c;
}
The second solution is found by changing c = 0 to c = 1;
int c = 1, t = 9;
while( c < t)
{
cout << "\n hello world";
++c;
}
```
Computer Science & Information Technology