+ 5
In one of my programs i have to type the output"Enter three coefficients",then the user will enter 3 coefficients but when i run
the code play background says "looks like u r code needs input...enter input into separate lines".. I don't want this i want"Enter three coefficients"..how can I do that???? https://code.sololearn.com/czmW0n7ViVuQ/?ref=app here above is the code ....
13 ответов
+ 4
u mean this
cout<<enter the first coefficient;
cin>>a ;
cout<<enter the second coefficient;
cin>>b ;
cout<<enter the third coefficient;
cin>>c ;
+ 4
ok
+ 4
thx
+ 3
what do u mean by local compiler
+ 3
Jaime but the user doesn't know how to run the program..
+ 3
ok Jaime thanks for help...I have done that..
+ 1
I had the same problem.Thanks for the clarifications @Jamie and @Tobias Hallmans .
+ 1
seperate the input. ask for the coefficients in seperate lines, i.e. 3 cin statements.
+ 1
Any alternatives for this?
0
Good morning