Codeplayground:Only one time input? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Codeplayground:Only one time input?

I'm working on a little code which features a maths formula.It accepts only positive integers, so I coded a 'cout<<"Please input positive integers only"<<endl;' when users enter negative int, and a redo option('enter 'y' to redo' , cin>>redo then dowhile loop ). But it seems that users can only input once in the code playground? Can't it work like normal .exe program? This way I have to modify the code again before posting it.(not that it's hard,it's just a simple program, but I'm just curious) .

27th Dec 2016, 5:59 AM
Veii Xhen
Veii Xhen - avatar
2 Answers
+ 5
Yes, the codeplayground can only do a one-time input sadly. Maybe they will do a multiple time input in the future.
27th Dec 2016, 6:28 AM
Wen Qin
Wen Qin - avatar
+ 2
thanks K2 Shape
27th Dec 2016, 9:07 AM
Veii Xhen
Veii Xhen - avatar