My house's number can be written
as ABCD but it also equals to
A^B * C^D.
Find the number ..-no computer programs!!!

...who have to write so much code for such a little problem! In Linux you can use AWK as follows:

BEGIN {

for (A=0; A<=9; A++) {

for (B=0; B<=9; B++) {

for (C=0; C<=9; C++) {

for (D=0; D<=9; D++) {

ABCD1 = A B C D \"\"

ABCD2 = (A^B)*(C^D)

if (ABCD1+0)=ABCD2) print ABCD

}

}

}

}

}

*Edited on ***June 21, 2004, 3:40 pm**