/* This is the classical C program for the beginners. The program asks the user to enter a name. Then, it outputs a greenting sentence. */ #include // C library for standard I/O #include // C library for function "system". int main(void) { // Function header char name[10]; // A character array of text string scanf("%s", &name); // Read a name. printf("Hello World! I am %s.\n", name); // Print a string and the name system("pause"); // This statement will hold the standard output. return 0; // Return value of function main( ) }