+ 1
All day no luck
I have literally been trying this all day. Trying to get the computer to guess my number. What is wrong with it? https://code.sololearn.com/c11fFFh8t90o/#cpp
13 Respuestas
+ 8
i am a software engineering student
+ 8
that's a bold choice
i wish you good luck whatever you may choose :)
+ 5
great
also added few comments
and a representation of the upper and lower boundries at each iteration
+ 5
do what exactly?
+ 4
re-wrote it a little bit
had some wrong placement of }
but sometimes it won't be able to guess as it takes too long for execution and it won't find the correct number
https://code.sololearn.com/ceT0GIFd33Pe/?ref=app
+ 4
might need tonchange order of some lines in there
+ 2
yeah I'm thinking about changing careers but I figured I'd learn coding then maybe go to school later
+ 1
thanks for your help. this is exactly what I needed so I can compare to see what I had wrong
0
do you so this for a living?
0
do you do not so lol.
0
coding
0
your version is not quite right though. it doesn't get wording right. if the number is 10 the computer will guess 55 and then say it guessed too low
0
yeah I'm just gonna start from scratch