Cin not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Cin not working

#include <iostream> using namespace std; int main() { int a; cout <<"\n enter a no"; cin>>a; cout<<a; return 0; }

11th Aug 2018, 12:59 PM
Prajith Mathews
Prajith Mathews - avatar
4 Answers
+ 4
Were you using the right playground? link the code using the " + " then select the code. edit where are you running the code?
11th Aug 2018, 1:44 PM
Manual
Manual - avatar
0
#include <iostream> using namespace std; int main() { int a; cout <<"\n enter a no"; cin>>a; cout<<a; return 0; }
11th Aug 2018, 12:59 PM
Prajith Mathews
Prajith Mathews - avatar
0
cin not working
11th Aug 2018, 12:59 PM
Prajith Mathews
Prajith Mathews - avatar
0
https://code.sololearn.com/cmIlYrsz23xO/?ref=app works for me, make sure to enter only the number and nothing else
11th Aug 2018, 1:10 PM
hinanawi
hinanawi - avatar