BEST SITE FOR WEB DEVELOPERS
C Language. W3Schools in English. Lessons for beginners

Ua Es De

C Output (Print Text)


Output (Print Text)

The printf() function is used to output values/print text:

Example

#include <stdio.h>

int main() {
  printf("Hello World!");
  return 0;
}
Try it Yourself »

You can add as many printf() functions as you want. However, note that it does not insert a new line at the end of the output:

Example

#include <stdio.h>

int main() {
  printf("Hello World!");
  printf("I am learning C.");
  return 0;
}
Try it Yourself »