If we want that our computer asks for a no. or a string 2 times, how to do it by using cin >>? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

If we want that our computer asks for a no. or a string 2 times, how to do it by using cin >>?

Actually i want to write a code that can work like a calculator .

12th Apr 2017, 2:11 PM
Rahul Sonia
Rahul Sonia - avatar
1 ответ
+ 2
You can just use cin multiple times or put it in loop with needed number of iterations.
12th Apr 2017, 2:29 PM
Jeth
Jeth - avatar