How to repeat a value into a range using formula?

I want to do something like this :
enter image description here

The value can be a character or some words.

If the value is number (for example = 0) then i can do :


But i can’t use character or words.