+ 1

Can you tell me what's wrong in this code?

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

5th May 2022, 6:26 PM
Paranoia Nova
Paranoia Nova - avatar
3 Answers
+ 4
https://code.sololearn.com/c5RKe8JdUe0w/?ref=app
5th May 2022, 6:58 PM
Oma Falk
Oma Falk - avatar
+ 1
The is no "Null".
5th May 2022, 6:41 PM
Lisa
Lisa - avatar
+ 1
1. 'while n == 1' will only be true if user inputs 1. Otherwise, the loop is never executed. 2. 'while s1.size() is not Null' will either run never or forever. s1 doesn't change inside the loop 3. The question doesn't inform what the code should do.
5th May 2022, 8:22 PM
Emerson Prado
Emerson Prado - avatar