program to return english words for numbers

Pages: 12
return is a statement.

If you all are going to nit-pick. Because C and C++ do not have commands or instructions.

The trick is to realize that we say numbers in groups of three digits.

183     --> one hundred eighty three
183,000 --> one hundred eighty three thousand
183,012 --> one hundred eighty three thousand twelve

Thousands, millions, billions, etc are powers of 1000.

Good luck!
If we really want to be pedantic, return is a keyword. return; is a statement.
Topic archived. No new replies allowed.
Pages: 12