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 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 ....

17th Jan 2018, 2:21 PM
JACOB RANJIT
JACOB RANJIT - avatar
10 Answers
+ 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 ;
17th Jan 2018, 2:35 PM
JACOB RANJIT
JACOB RANJIT - avatar
+ 4
ok
17th Jan 2018, 2:40 PM
JACOB RANJIT
JACOB RANJIT - avatar
+ 4
thx
17th Jan 2018, 2:40 PM
JACOB RANJIT
JACOB RANJIT - avatar
+ 3
what do u mean by local compiler
17th Jan 2018, 2:29 PM
JACOB RANJIT
JACOB RANJIT - avatar
+ 3
Jaime but the user doesn't know how to run the program..
17th Jan 2018, 2:30 PM
JACOB RANJIT
JACOB RANJIT - avatar
+ 3
ok Jaime thanks for help...I have done that..
17th Jan 2018, 2:32 PM
JACOB RANJIT
JACOB RANJIT - avatar
+ 1
I had the same problem.Thanks for the clarifications @Jamie and @Tobias Hallmans .
17th Jan 2018, 2:30 PM
Sangam Swadi K
Sangam Swadi K - avatar
+ 1
seperate the input. ask for the coefficients in seperate lines, i.e. 3 cin statements.
17th Jan 2018, 2:31 PM
storm
storm - avatar
+ 1
Any alternatives for this?
17th Jan 2018, 2:32 PM
Sangam Swadi K
Sangam Swadi K - avatar
0
Good morning
19th Jan 2018, 9:28 PM
‎‫علاء جديع أبوإسلام (أبوإسلام)‬‎
‎‫علاء جديع أبوإسلام (أبوإسلام)‬‎ - avatar