home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
98.img
/
LCNOW2.ZIP
/
EXAMPLES
/
GREET.C
< prev
next >
Wrap
C/C++ Source or Header
|
1988-07-06
|
366b
|
19 lines
/*
* G R E E T
*
* Get the user's name and print a personalized greeting.
*/
main()
{
char name[40];
/* Prompt for and read the user's first name. */
printf("Enter your first name and press ENTER: ");
scanf("%s40", &name);
/* Print the personalized greeting. */
printf("\nGreetings, %s. Welcome to C programming!\n",
name);
}