How do i fix the input pop up for c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i fix the input pop up for c++

ive seen fixes for python and c#, but no answers for c++ https://code.sololearn.com/cMZj9D6d1Ue4/?ref=app

29th Sep 2017, 4:12 AM
Gryn T
Gryn T - avatar
2 Answers
+ 4
It is used to take input in Sololearn if you do want it then don't use cin. You can't take input without it in Sololearn.
29th Sep 2017, 4:41 AM
Ekansh
+ 2
What do you want fixed, this program works, but the input is odd: #include <iostream> using namespace std; int main() { int numberGuessed; int intNumberGuessed = 0; do{ cout << "guess between 1 and 10: "; cin >> numberGuessed; intNumberGuessed = numberGuessed; cout << intNumberGuessed << endl; } while(intNumberGuessed != 4); cout << "you win" << endl; return 0; }
29th Sep 2017, 4:42 AM
Paul
Paul - avatar