+ 2

Why does the program ask me only one time to enter the value in a loop?

int num = 1; int number; while (num <= 5) { cin >> number; num++; } PS: That code was taken from the loop lesson

30th Jun 2017, 6:42 AM
SuperIceTea
SuperIceTea - avatar
5 ответов
+ 11
Because loops and user input doesn't work well for Code Playground, which takes user input prior to code compilation. For the best learning experience, it is still advised for learners to set up a desktop IDE and compiler.
30th Jun 2017, 6:46 AM
Hatsy Rei
Hatsy Rei - avatar
+ 8
I've also heard of CppDroid, apart from @Pierre's* suggestion, but never tested it myself.
30th Jun 2017, 6:56 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
Ty, I will try it
30th Jun 2017, 6:56 AM
SuperIceTea
SuperIceTea - avatar
+ 2
Thanks, you clarified this to me, but is there a good program for writing cpp code on phones and tablets?
30th Jun 2017, 6:49 AM
SuperIceTea
SuperIceTea - avatar
+ 1
If you have an android phone get DroidEdit. It's what I use to code when I'm on the go. There's a free version and a paid version. https://play.google.com/store/apps/details?id=com.aor.droidedit&hl=en
30th Jun 2017, 6:54 AM
Pierre Gravelle
Pierre Gravelle - avatar