/* * iostr2.c */ #include int main(void) { char str[81]; while(gets(str)) // while gets() evaluates to true, stay in the loop // gets - gets a while string (or line) of chars { puts(str); // puts - reads array address of 'str', writes all elements to output putchar('\n'); // puts a single char } printf("This is the end of the program.\n"); return 0; }