0

User Input

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

18th Jun 2018, 8:13 AM
Aniruddh
Aniruddh - avatar
4 Answers
+ 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
18th Jun 2018, 8:36 AM
shobhit
shobhit - avatar
+ 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
18th Jun 2018, 11:07 AM
hinanawi
hinanawi - avatar
0
cin >> /* a variable */ a >> /* a variable */ b ; You can also do like this
18th Jun 2018, 5:03 PM
Aveek Bhattacharyya
Aveek Bhattacharyya - avatar