0
guess the number
Why are my tried not increasingā¦. Not working? https://code.sololearn.com/WBbAqvh6iN2n/?ref=app
7 Answers
+ 1
We can define a condition for that. I'm taking user input for just that.
https://code.sololearn.com/Wzzi1eL707Z5/?ref=app
0
It is increasing, but since it's not in a loop the code is terminating after reading the last prompt value.
0
Okay its in a loop now and still not workin?
0
Wrong syntax
0
What wrong? Can u show me?
0
It's not efficient what you want to do, but wrapping the whole code except the initial assignment of trys = 0 in a while loop would work.
0
Okayā¦so like:
while(what would i put here?) {
codeā¦
}
trys = 0;