在线编译器 C

#include <stdio.h> int main() { printf("Hello, World!\n"); printf("Hello, World!\n"); return 0; }
This code prints "Hello, World!" twice, each on a new line, and then returns 0 to indicate successful completion. It is a simple program that demonstrates basic output in C.

- The program uses `printf` twice, which is fine, but consider that you could achieve the same result with a loop if you wanted to print the message many times.
- Notice that the `return 0;` statement is inside the `main` function, which is correct for indicating success.