X1026: Laughing length in C++

Complete the function that receives an unsigned integer and creates a string that repeats a laugh as many times as specified by the integer. If there are no repeats, it should return an empty string ("") but otherwise, each repeat should add extra ha onto a laugh, where only the first instance has a capital H. For example, laugh(3) should return "Hahaha".

Your Answer:

Feedback

Your feedback will appear here when you check your answer.