std::string howManyTimes(int num) { std::string aass = ""; // this loop will convert num into as for (int a = 1;a<=num;a++){ aass = aass +"a"; } return "Ed" + aass + "bit"; }