0

Where did I do wrong? It is showing error.. and why is it necessary to use \n here?

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

12th Aug 2023, 7:40 AM
Sheetal
Sheetal - avatar
3 odpowiedzi
+ 3
M Charanmitha Your code is correct... It won't show error if you use \n ... The purpose of \n is to print the statement in new line... as Lisa sis mentioned... And if you use it the console screen will be neat ....and easy to view ... Use \n like this to avoid any error... https://code.sololearn.com/cHIwOo8iz13s/?ref=app
12th Aug 2023, 8:18 AM
Riya
Riya - avatar
+ 2
The semicolon at the end of line 8 is missing. You only need "\n" if you want a linebreak.
12th Aug 2023, 7:45 AM
Lisa
Lisa - avatar
+ 1
Tq mam
12th Aug 2023, 8:26 AM
Sheetal
Sheetal - avatar