All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
my house's number (Posted on 2004-06-21) Difficulty: 3 of 5
My house's number can be written as ABCD but it also equals to A^B * C^D. Find the number ..-no computer programs!!!

See The Solution Submitted by Ady TZIDON    
Rating: 4.5000 (4 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts Poor BASIC people... | Comment 8 of 32 |
...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
  Posted by Federico Kereki on 2004-06-21 15:33:47
Please log in:
Remember me:
Sign up! | Forgot password

Search body:
Forums (1)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (1)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Copyright © 2002 - 2019 by Animus Pactum Consulting. All rights reserved. Privacy Information