wes d2a2ba9e15 first commit | 4 lat temu | |
---|---|---|
.. | ||
README.md | 4 lat temu | |
code.cpp | 4 lat temu | |
unitTest.cpp | 4 lat temu |
by Caleb Miller tags: formatting, strings, recursion, loops
Write a function that takes an integer and returns a string with the given number of "a"s in Edabit. Examples howManyTimes(5) ➞ "Edaaaaabit" howManyTimes(0) ➞ "Edbit" howManyTimes(12) ➞ "Edaaaaaaaaaaaabit" Notes You'll only be given integers as test input.
Write a function that takes an integer and returns a string with the given number of "a"
s in Edabit.
howManyTimes(5) ➞ "Edaaaaabit"
howManyTimes(0) ➞ "Edbit"
howManyTimes(12) ➞ "Edaaaaaaaaaaaabit"