Problem with cin | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Problem with cin

I wrote a line of code in c++ asking the person to enter two nos but entered only one. but in the output of both nos. Second no was automatically set to 8 always Why is it happening

5th Sep 2019, 5:19 PM
Sajal Chuttani
Sajal Chuttani - avatar
2 Answers
+ 1
Thanks
5th Sep 2019, 5:40 PM
Sajal Chuttani
Sajal Chuttani - avatar
- 1
Cin >> var >> var;
5th Sep 2019, 5:35 PM
Ram kabir
Ram kabir - avatar