0
User Input
How is user input(multiple) used practically? How to type Type Multiple User inputs?
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
+ 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