/* * iostr1.c */ #include int main(void) // header for funciton main { char str[81]; //declare a char array with 81 elements printf("Please enter a line of text.\n"); // prompt for input gets(str); // read from input buffer, store in array str printf("you typed: \n"); // text title for program output puts(str); return 0; }