0

How I add more than one value to fill in output?

Like: #include <iostream> using namespace int=a; int=b; int main() { cin>>a; cin>>b; } (does this ask you for one single value or two)

30th May 2017, 10:23 PM
Justme
Justme - avatar
5 Respuestas
+ 4
Keep in mind this will not work in code playground. Unfortunately code playground only allows one input from the user. So, if you want to use cin two or more times, I suggest using a different compiler.
30th May 2017, 11:48 PM
Rrestoring faith
Rrestoring faith - avatar
+ 10
You can input multiple values to the variables in your example, using Code Playground. Split multiple input into different lines. E.g. When the output box is shown, input: 12 14 12 will be stored into variable a, and 14 into variable b.
31st May 2017, 3:18 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
It asks you for 1 line at a time. So youd enter A, press enter, and then youd enter B
30th May 2017, 10:52 PM
aklex
aklex - avatar
0
Thank's (im new in this)
30th May 2017, 10:54 PM
Justme
Justme - avatar
0
now everything make sense lol thanks
30th May 2017, 11:54 PM
Justme
Justme - avatar