0

How do I add next line in my code?

Line breaking

12th Oct 2020, 3:19 AM
Stephen MacManu
Stephen MacManu - avatar
14 ответов
12th Oct 2020, 10:49 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 4
It's error Såñtösh, causa \n go inse a string and by mistake are you closing before comma. Should be print("Hello.\n"); If and some prints come with line break, as System.out.println(yourString); print and println are same, but println bring new line in the end.
12th Oct 2020, 3:29 AM
Marcelo Anjos
Marcelo Anjos - avatar
+ 2
It is very simple use "\n" character in output statement. cout << "\n"; (or) cout << "Hi \n"; (or) cout << "some string" << endl;
13th Oct 2020, 5:43 PM
Balaji
Balaji - avatar
+ 1
Use " \n" not using this"/n"
13th Oct 2020, 1:47 PM
Rahul Kumar
Rahul Kumar - avatar
0
\n n: new line, and need be escaped.
12th Oct 2020, 3:24 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
See print("hello",\n")
12th Oct 2020, 3:25 AM
Sâñtôsh
Sâñtôsh - avatar
0
My codes here can't accept input. It keeps giving errors. Any help
12th Oct 2020, 3:28 AM
Stephen MacManu
Stephen MacManu - avatar
0
It's c++ code please
12th Oct 2020, 3:33 AM
Stephen MacManu
Stephen MacManu - avatar
0
Same \n, is is line break on all languages. prinf("Your text.\n");
12th Oct 2020, 3:35 AM
Marcelo Anjos
Marcelo Anjos - avatar
12th Oct 2020, 3:38 AM
Stephen MacManu
Stephen MacManu - avatar
0
Check this code guys Keeps giving error that n is not declared
12th Oct 2020, 3:39 AM
Stephen MacManu
Stephen MacManu - avatar
0
Here is running normal. https://imgur.com/a/oz4fg1A
12th Oct 2020, 4:17 AM
Marcelo Anjos
Marcelo Anjos - avatar
0
Thanks a lot guys I appreciate it
12th Oct 2020, 4:39 AM
Stephen MacManu
Stephen MacManu - avatar
0
Use endl or \n
13th Oct 2020, 1:48 PM
Arya Deep Chowdhury
Arya Deep Chowdhury - avatar