/* * Program name: ch2pp10.c * Demonstartion of user defined function * no input arguments (void), no return value (void) * Author: Cate Anderson * Written: 2-04-06 * Last revision: 2-04-06 */ /* * This program prompts user for to press enter to draw face * and draw smiley face to screen when enter is pressed */ #include /* function prototype */ void drawFace( void ); int main() { char cue; printf("\nPress enter key to draw face"); scanf("%c", &cue); drawFace(); return 0; } void drawFace() { printf("\n\t xxxxx" ); printf("\n\t x x" ); printf("\n\tx () () x" ); printf("\n\tx x" ); printf("\n\tx \\___/ x"); printf("\n\t x x" ); printf("\n\t xxxxx" ); printf("\n\n Have a good Day!!!\n\n\n"); }