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.)
re: Poor AWK people... | Comment 9 of 32 |
(In reply to Poor BASIC people... by Federico Kereki)

...who have to use extinct birds for such a little program!  In Visual Basic you can use the following:

For A = 0 To 9
For B = 0 To 9
  For C = 0 To 9
   For D = 0 To 9
    If A^B*C^D = A*1000+B*100+C*10+D Then
     Text1.Text = Str(A)+Str(B)+Str(C)+Str(D)
    End If
   Next
  Next
Next
Next

That's a whole 2 lines less (as long as I don't declare my variables and include the return statement... ;) )


  Posted by Erik O. on 2004-06-21 16:09:34
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


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

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information