I don't understand why not correct? Please help me.
Replace this line with your code.
Perhaps it doesn't like the way you formatted that. My first guess would be the space between the function name and its parentheses. My second would be about the code inside the loop, instructions don't say to add any, and they are also not indented to match the curly braces.
As you can tell from the output, what you wrote does compile and run, probably even behaves like you want. So "correct" becomes a matter of matching expectations, making it as similar as possible to what's asked for.