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