Say

Say

Medium

Instructions

Given a number, your task is to express it in English words exactly as your friend should say it out loud. Yaʻqūb expects to use numbers from 0 up to 999,999,999,999.

Examples:

  • 0 → zero
  • 1 → one
  • 12 → twelve
  • 123 → one hundred twenty-three
  • 1,234 → one thousand two hundred thirty-four
Edit via GitHub The link opens in a new window or tab
Swift Exercism

Ready to start Say?

Sign up to Exercism to learn and master Swift with 35 concepts116 exercises, and real human mentoring, all for free.