Problem | 3nplus1 |
---|---|
User | UnknownCoder56 |
Submission Time | 2023-11-09 12:04:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:33: error: expected ‘;’ before ‘}’ token
10 | if(newnum%2==0){newnum=newnum/2}
| ^
| ;
3nplus1.cpp:11:27: error: expected ‘;’ before ‘}’ token
11 | else(newnum=newnum*3 + 1)}
| ^
| ;
3nplus1.cpp:12:16: error: expected ‘}’ at end of input
12 | cout << newnum;
| ^
3nplus1.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^