Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need some help

Status
Not open for further replies.

Joes108

Technical User
Nov 3, 2001
1
US
Hi I am doing a program that you enter two number then get the product of the two number and then it checks to see if they are vampire numbers.
EX: 15 * 93= 1395
the product must have the same numbers and the same amout of numbers in the original equation, but they do not need to be in the same order. The problem that I have is I need to know how to check if the number are the same in the equation as the answer.
Thanks for the help
 
Put the resulting integer into a string then use SubString to compare each number to the original ones. You can put the original ones into a string as well then just use a loop to compare the two strings
 
Or you can put 'em in an array and sort them and then compare the two arrayes with each other!
(this shouldn't be to much of a fuzzle?) My codes look like something a kid wrote
I have absolutely no idea what I am talking about
Somehow I still manage to make it work
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top