Using C# I need to convert an integer to it's word representation, and only go up to 5 to 10. Is there a better way to do it than this?
static string[] numberwords =
{
"zero",
"one",
"two",
"three",
"four",
"five"
};
public static string GetNumberAsString(int value)
{
return numberwords[value];
}