When you want to print text, numbers, or variable values to the console, use printf(). To move output to a new line, add .
c
#include <stdio.h>
int main() {
printf("Hello World!
");
printf("I am learning C.
");
printf("C is fast and powerful.");
return 0;
}The first printf() and the second printf() both include , so the output breaks onto separate lines. The last line doesn't have it, so the cursor just stops right after that text. Since there is no newline, the cursor will simply stay right after that text.
You should see
Hello World! I am learning C. C is fast and powerful.Info
doesn't show up as a character on screen — it works as a new-line command.