+ 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?
4 odpowiedzi
0
also like :
printf("omkar\npawar") ;
+ 3
Append \n (newline character) to the first string
+ 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
0
you can use /n
for example
print("omkar/npawar")
output :
omkar
pawar