// This C program named hello.c is to say Hello // Author ... (type here your name) // Date ... (type here the current date) // For ... (institution, course, purpose) //--------------------------------------------------------------------------- #include //Handles the keyboard input and screen output #include //Handles DOS system commands ("cls", "pause", etc.) void main() { //This part declares variables used by the program char your_name[12]; // String declaration to store your name //This part inputs your name and displays personalised hello message printf("This program is to send you a personalised hello message!"); printf("\nPlease enter your name (e.g. Jan) "); //prompts for your name scanf("%s", your_name); // Inputs your name printf("Hello "); // Displays the Hello printf(your_name); // Displays your name printf ("!\n"); // Changes the line system("pause"); // DOS "Pause" command (for user to look at results) }