0
Where did I do wrong? It is showing error.. and why is it necessary to use \n here?
3 Respostas
+ 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
+ 2
The semicolon at the end of line 8 is missing.
You only need "\n" if you want a linebreak.
+ 1
Tq mam