From 87f3955187998717e37063c4a89e00e2ee12c1ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Szab=C3=B3?= Date: Fri, 6 Mar 2020 01:03:46 +0100 Subject: [PATCH] funguje --- du1/program.c | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/du1/program.c b/du1/program.c index d325754..53933db 100644 --- a/du1/program.c +++ b/du1/program.c @@ -1,6 +1,16 @@ #include -int main() { - // printf() displays the string inside quotation - printf("Hello, World!"); - return 0; +#include +#include + + +int main() +{ + char str[100]; + scanf("%[^\n]s",str); + for(int i=0;i