Quote Originally Posted by potatoCode View Post
Would you prefer the solution on a silver plater like this
Code:
#include <iostream>
#include <string>

int main()
{
    std::string ll1l;
    for(int ll(0), lll(4000),l1(0), ll1(5), l1l(100);
        ll++ != ll1 && (std::cout << "Sales amount: ", std::cin >>l1);
        std::cout << ll1l.append((l1 < 0 ||l1 > lll ?
        (std::cout << "Try again: ", std::cin >>l1, --ll) :l1)/ l1l, '*')
        << "\n" , ll1l.clear());
}
or the way these members had been trying to guide you in the right direction?
It's your choice.
Yes, the old "give them the obfuscated answer version" trick. I've done that a few times ...

Regards,

Paul McKenzie