Benjamin F. answered 01/31/23
Tutor
4.9
(79)
Former PhD Student Computer Science/Mathematics 15+ Years of teaching.
Your function is going to be:
void OutputValue(std::string value, int times)
{
for(int i = 0; i < times; i++)
{
std::cout << value << std::endl;
}
}