Can you find a five-figure number, with distinct digits between 1 and 9, which satisfies
all of the following encoded equations?
BRIAN x 2 = CONGA
LINDA x 3 = NAILER
LEVIK x 4 = VARIED
CORAL x 6 = NESTED
Repeated letters within an equation indicate the replication of digits. However, the same letter in different equations does not necessarily refer to the same digit.
(In reply to
re: the programmatic way by Josie Faulkner)
This program, like most I've posted, is in QuickBasic, a DOS programming language that runs in a Command Prompt under Windows. The syntax is almost identical to that of Visual Basic versions through 6.0, except notably, that in VB you wouldn't be allowed to have a numeric variable n in the same program as a string n$.
In other posts I have used UBASIC, with built-in extra precision arithmetic and nice numeric functions, like testing for primes. But that language requires line numbers and doesn't have as good a repertoire of DO...LOOP functionality (only WHILE...WEND).
|
Posted by Charlie
on 2006-12-08 23:38:55 |