Problem | 3nplus1 |
---|---|
User | Sia |
Submission Time | 2023-11-08 18:49:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:11: error: expected ‘;’ before ‘cout’
10 | n = n/2
| ^
| ;
11 | cout << n/2 << " ";
| ~~~~
3nplus1.cpp:14:15: error: expected ‘;’ before ‘cout’
14 | n = 3*n + 1
| ^
| ;
15 | cout << 3*n + 1 << " ";
| ~~~~