+ 1

How to write any word in second line?

After this Input Printf("omkar") Printf("pawar") Sololearn give me this Input Omkarpawar But I want this Input Omkar Pawar What I do?

6th May 2022, 10:31 AM
Omkar Pawar
Omkar Pawar - avatar
4 odpowiedzi
0
also like : printf("omkar\npawar") ;
6th May 2022, 10:59 AM
Jayakrishna 🇮🇳
+ 3
Append \n (newline character) to the first string
6th May 2022, 10:34 AM
OrHy3
OrHy3 - avatar
+ 1
If you are printing only a string literal to the console and you also want a newline at the end, then the puts() function [put string] is more appropriate than printf(). It is much faster in execution time, too. puts("omkar"); puts("pawar"); Output: omkar pawar
6th May 2022, 12:49 PM
Brian
Brian - avatar
0
you can use /n for example print("omkar/npawar") output : omkar pawar
7th May 2022, 11:31 PM
Difsy