The following code does not work for me in Code::blocks | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

The following code does not work for me in Code::blocks

Asks the question, but doesn't print the result https://code.sololearn.com/cyodP53Qqdox/#

21st Jan 2021, 1:34 PM
Paquito Turriano
Paquito Turriano - avatar
3 Answers
+ 2
The code works fine for me (also Code::Blocks). What happens when you have entered the five numbers instead? Does it close the console window immediately?
21st Jan 2021, 3:03 PM
Shadow
Shadow - avatar
0
No... Is left doing nothing
22nd Jan 2021, 8:45 PM
Paquito Turriano
Paquito Turriano - avatar
0
Solved! I only had to put the question ("cin") before the loop Thanks for the interest! B-)
23rd Jan 2021, 5:20 PM
Paquito Turriano
Paquito Turriano - avatar