0

What is the mistake in logic of the following code?

https://code.sololearn.com/c9XPKbJqHcIm/?ref=app

22nd Nov 2017, 2:04 PM
Saloni Singh
2 odpowiedzi
+ 1
Note: you don't need to put something in your for statement when it doesn't make sense. for(;a<b;a++) works just fine for line 7. You could also code: for(;++x<z;) if you have a time it makes sense.
22nd Nov 2017, 3:23 PM
John Wells
John Wells - avatar