Hi!
I'm a complete beginner and have been learning C++ for a mounth or so via an internet course. It has been going fine untill we came to looping and got an assignment that goes :
"Write a program that asks a number and writes a figure depending on the number. Here is an exemple:
number: 3
A
AA
AAA
number: 5
A
AA
AAA
AAAA
AAAAA
"
And here is where i got stuck. I understand how to loop with for, while, do... while. But none of them seem to achiev this result directly. I tried searching for a way to type a character N X times but all these searches gave an answers either "you need to loop character N" or "oh, you're thinking of a diffrent language, you can't do that with C++".
I would appreciate some help before I turn to the teacher with this. Please bear in mind that this is a beginners task that has to do with loops, so the solution is probably simple. Thanks!