aboutsummaryrefslogtreecommitdiff
path: root/semestr-5/so/lista2/echo.c
diff options
context:
space:
mode:
Diffstat (limited to 'semestr-5/so/lista2/echo.c')
-rw-r--r--semestr-5/so/lista2/echo.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/semestr-5/so/lista2/echo.c b/semestr-5/so/lista2/echo.c
new file mode 100644
index 0000000..1d26d6f
--- /dev/null
+++ b/semestr-5/so/lista2/echo.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+int main() {
+ char buffer[1000];
+ printf("Echo!\n");
+ while (1) {
+ scanf("%s", buffer);
+ printf("%s\n", buffer);
+ }
+ printf("What?");
+}