German2english

Description

Program translate german numbers to english, and english to german

Source: Learn prolog now!, 2001, (course available on-line)

Download

Program source code: german2english.pl

Listing

tran(eins,one).
tran(zwei,two).
tran(drei,three).
tran(vier,four).
tran(fuenf,five).
tran(sechs,six).
tran(sieben,seven).
tran(acht,eight).
tran(neun,nine).
 
listtran([],[]).
listtran([X|T1],[Y|T2]):-tran(X,Y),
			 listtran(T1,T2).

Comments

pl/prolog/pllib/german2english.txt · ostatnio zmienione: 2017/07/17 08:08 (edycja zewnętrzna)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0