Seshadri M

Seshadri M

  • NA
  • 69
  • 17.7k

How to get words from number using C#

Sep 5 2017 1:22 AM
/* how to get 12345 as twelve thousand three hundred and fourty five*/
 
public static void main()
{
int i = 12345
Arraylist[] ones =new Arraylist[];
ones[0] = "zero" ;
ones[1] = "one";
ones[2] ="two";
....
/* declaring ones, tens, hundreds, thousand*?
 
Any shortcut methods available for this. 

Answers (2)