Is my ā€™doā€™-loop wrong? It says ā€Expected primary-expression before ā€™intā€™ā€ | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Is my ā€™doā€™-loop wrong? It says ā€Expected primary-expression before ā€™intā€™ā€

do(int x = 0;x>3;x++) { cin >>ans0; answer[x]=ans0; cout <<answer[x]; }

25th Jan 2022, 1:36 PM
N3stS
2 Respostas
25th Jan 2022, 1:55 PM
Ipang
+ 1
Forgot that you needed the ā€™whileā€™ šŸ˜…
25th Jan 2022, 1:58 PM
N3stS