Re: numbers to text
- From: Duncan Patton a Cambpell <campbell@xxxxxxxxxx>
- Date: Fri, 14 Nov 2008 21:12:04 GMT
On Tue, 11 Nov 2008 20:59:25 +0100, Jonas wrote:
A.L. wrote:
On Mon, 10 Nov 2008 11:09:35 -0800 (PST), equinox
<aditya15417@xxxxxxxxx> wrote:
On Nov 10, 8:21 am, A.L. <alewa...@xxxxxxxxxx> wrote:
On Mon, 10 Nov 2008 06:39:54 -0800 (PST), equinox
<aditya15...@xxxxxxxxx> wrote:
How do you change a list of numbers say,:
[1,6]
will give me a result of
[s,i,x,t,e,e,n]
[1,3]
will give me:
[t,h,i,r,t,e,e,n]
[1,9,0,0]
will result:
[o,n,e,t,h,o,u,s,d,n,i,n,e,h,u,n,d,r,e,d]
You change by writing program in Prolog
A>L.
yes, but I am asking how can I change it
This is your homework and you should figure it out
A.L.
P.S> You can also wait until Mr Jonas from University of Koblenz,
Germany will do this for you
Hi,
I have no solution for you, just a hint:
123 million 456 thousand 789.
--- --- ---
if you can do it with numbers <= 999 you can easy get the greater
numbers. the hundred-position is easy: one, two three ... hundred the
ten postion is easy: twenty, thirty, ...ninety the teens
(11,12,13,14,15,16,17,18,19) take seperatly the one position is easy (if
it is not in a teen): one, two, ..., nine
ok, good luck!
Another hint: the div and mod operators can be useful for such a function.
Dhu
--
Duncan Patton a Campbell is Dhu
.
- References:
- numbers to text
- From: equinox
- Re: numbers to text
- From: A . L .
- Re: numbers to text
- From: equinox
- Re: numbers to text
- From: A . L .
- Re: numbers to text
- From: Jonas
- numbers to text
- Prev by Date: Re: the circular pizza puzzle
- Next by Date: Re: Prolog question
- Previous by thread: Re: numbers to text
- Next by thread: DES 1.6.1 Released
- Index(es):
Relevant Pages
|
Loading