To print newline. To see the difference made by "\n", check out below code.
#include <stdio.h> int main() { printf("Hello "); printf("World, in same line."); printf("\n I am in newline"); return 0; }
\n helps us to move our cursor to next line
example: if we write System.out.print("We \n Are One....." ); (JAVA STATEMENT)
Our Output will be:
We
Are One