User Input | Sololearn: Learn to code for FREE!

0

User Input

How is user input(multiple) used practically? How to type Type Multiple User inputs?

6/18/2018 8:13:59 AM

Aniruddh

4 Answers

New Answer

+5

https://www.sololearn.com/Discuss/974875/?ref=app https://www.sololearn.com/Discuss/1154241/?ref=app

+1

assuming you mean how to get multiple input in c++ . just use cin or scanf.wherever you need inputs,it will not work here on code playground so try in your pc

+1

let's say you have 2 variables, "a" and "b". you want to read their input in one line(or different lines). you would do: cin >> a >> b

0

cin >> /* a variable */ a >> /* a variable */ b ; You can also do like this