there is a very easy method first you type \ in a printf statement so it would print a and then just after that you write n i.e \n . For example:- printf(""\n""); This segment of code will print n on output screen. I hope this answer will help.