+ 8
Can I use cin in a loop ?if yes how?
13 Answers
+ 8
Carmine 🇮🇹
Still cin is working only once
The same value is used again and again
+ 8
Carmine 🇮🇹
This is what happens when I enter wrong value
https://drive.google.com/file/d/1or0Dr08xEjTx8u4EHRrgBlpSvgBpwHSK/view?usp=drivesdk
I want a program which asks for input again not one which loops forever on entering a wrong value
+ 7
Carmine 🇮🇹
What about if and else??
+ 7
Carmine 🇮🇹
Hey I want to use cin twice
+ 7
Carmine 🇮🇹
Thanks
+ 5
I want to make a code which makes the user input a value and then checks the value and if the value is correct then again asks for input to continue
+ 2
Can you explain what exactly you want to do?
+ 1
yes,
you use cin command normally
after providing the condition to loop
0
we use cin as we wish as we want....it depends on function perfomance.