#include int main() { char c, *str; int i = 0; while((c = getchar()) != '\n') str[i++] = c; str[i] = '\0'; printf("%s\n", str); }