hi, i'm new to c++, can someone help me make a program using for loop with this output;
enter a no:3
1*
2**
3***
the no. and asterisk depends on the inputed no.
tnx..
You'll need two loops, one inside the other.
Good luck!
No need for 2 loops in this case: just a single loop and the function " string(int,char) can do the job.
What string(int,char)?
http://www.cplusplus.com/reference/clibrary/cstring/
You must mean std::string::string(int,char).
Sure, you can use that. ...If you like to pointlessly construct and destruct objects.
PS: Am I the only one who thinks about that Monty Python's skit every time they read the thread's title?
Last edited on