echo.c 157 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 #include <stdio.h> int main(void) { printf("Input a string\n"); while (1) { char str[50]; scanf("%s", str); printf("%s\n", str); } return 0; }