How would you define a method that returns
"[Number of times]: hello hello hello [repeat Number of times]";
I want it to put in hello as many times my input wants it to display.
So, "number of times" is going to be there but i dont know how to do the hello.
My suggestion is,
return $"number of times: {string.Concat(Enumerable.Repeat("hello", num))}";
But the problem I get here is that there is no space between the hello's.
Could you help me please? I have been searching for hours but can't find a similar answer.