13

cout << "*"
cout << "**"
cout << "***"
cout << "****"
cout << "*****"

Comments
  • 9
    Ain’t this the opposite of lazy?

    EDIT: Hmmmm.. here’s an interesting thought: I guess it depends on your skill level in programming for it to be considered lazy or not.
  • 1
    The most efficient way it is indeed 😀
  • 4
    There is not even an endl after every line. Wouldn't it just print 15 * in one line?
  • 0
    @EaZyCode I have not used C++ after I graduated so I've forgotten all the basics.
Add Comment