Problem with cin | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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