Before I ask my question let me just say that I am a newbie to C, and do not know how to do a lot in it.
Anyway, the problem is that I need to print a specific number of characters. I first used Python, because that was a language that I was familiar with, and wrote this very simple program.
x = 5
print('#' * x)
This is what I want to achieve, but in C. Sorry if this is a duplicate or a stupid question, but I have been puzzled and without answers, even after looking on the internet.