Use Hashtable class where you may assign value at unique key.
Hashtable hs = new Hashtable();
string ar = "one thousand two hundred".Split(' ');
int no = 0;
for (int i = 0; i < ar.Length; i+=2)
no= no + (int) hs[ar[i]] * (int) hs[ar[i+1]];
please do not resurrect old threads to post new questions.
Also, we have a strict policy here at daniweb to help thosde who show effort. Since
this thread was solved, read through the code given and try to modify it to meet your own requirements, then post your own question with your code so far if you need specific help
There are lots of solvers here who will be happy to help you, provided you keep within the rules. So, stop posting in this old thread and start a new thread with your own question. Be more specific, give details of what you are trying to achieve. Most importantly, try for yourself first. We are not going to hand you a complete code solution. There is a link in the post above to some python code which you can use as a basis for your work. Make an attempt at solving the problem then post if you have a specific issue, including the code you have so far.