README.md 719 B

Edaaaaabit

by Caleb Miller tags: formatting, strings, recursion, loops

Summary

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.

Instructions

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

  • The string must start with "Ed" and end with "bit".
  • You'll only be given integers as test input.