- 1
Can anyone tell me what is the use of \ and \n
I am a new learner
5 Antworten
+ 12
In py ,backslash "\" is a special character, also called "escape" character.
It is used in representing space characters:
"\t" is a tab
"\n" is a newline
Also , prefixing a special character with \ turns it into an ordinary character.
+ 11
Can you specify your programming language..
+ 4
\n is for a newline basically moves you to the next sentence.
for example
System.out.print("Hello World \n Welcome to Sololearn ");
+ 2
It's python
0
\n to print in new line and \t to add space in java.please specify language.