- 1
Write C++ code that would read integers and stop when the value read is equal to 50
For (int x=0;x<50;x++){ cout<<"please enter your integers"; cin>>x; } cout<<"results"<<x<<end1;
3 Respostas
+ 8
Tsebiso Motseki ,
▪︎before we are going to help you, please present your attempt here.
if you haven't done a try by yourself so far, please do so. create your code in playground and post the link to it here.
▪︎please also provide a proper task description with sample of input and output.
▪︎if your question is related to a code coach exercise, please mention the tutorial name and the exercise number.
BTW: the attached samples has no relation to the question you have raised. it would be better to remove them.
thanks!
+ 3
Don't expect people to put effort into helping you if you're not even willing to put any effort into asking your question.
https://www.sololearn.com/Content-Creation-Guidelines?
https://code.sololearn.com/Wv5gTHy1N6Ji/?ref=app
https://www.sololearn.com/discuss/1316935/?ref=app
https://code.sololearn.com/W3uiji9X28C1/?ref=app
https://www.sololearn.com/discuss/333866/?ref=app
+ 2
Tsebiso Motseki
U have to read the integers until the user enters a number equal to 50..
U are not suppose to read the integers 50 time.. therefore no need to use for loop..
take a look here..
hope it helps.. :)
https://code.sololearn.com/cW5xH8ToT7gl/?ref=app