Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level 9 Lesson 4 ?

Answer is right but still showing wrong.
#include <stdio.h>

int main() {

char str[24];
fgets(str, 24, stdin);
puts(str);

return 0;
}
answer is - Small steps each day
by

1 Answer

sam5epi0l
The working code for this exercise is:

#include <stdio.h>

int main() {
char text[21];

fgets(text, 21, stdin);

puts(text);

return 0;
}

Login / Signup to Answer the Question.