Is my ’do’-loop wrong? It says ”Expected primary-expression before ’int’” | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
25th Jan 2022, 1:55 PM
Ipang
+ 1
Forgot that you needed the ’while’ 😅
25th Jan 2022, 1:58 PM
N3stS