1. Your First C Program β βHello, World!β This is the classic first program every C programmer writes. It simply prints “Hello, World!” on the screen. C
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
// My first C program β Hello, World! // Date: January 20, 2026 #include <stdio.h> // Library needed for printf int main() // Program starts here { printf("Hello, World!\n"); // Prints the message printf("Learning C is fun!\n"); // Extra line for fun return 0; // Program ends successfully } |
Output when you run it: text...