Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic (http://www.programmingforums.org/forum18.html)
-   -   Number Combinations (http://www.programmingforums.org/showthread.php?t=12121)

orez35 Dec 6th, 2006 6:56 PM

Number Combinations
 
I need help creating a program that generates all of the possible combinations of the last four digits of a telephone #. I want to be able to input the area code and exchange which are known values. The program will then generate the list which I need to export into another program. The list must be in a excel or CSV format.
I think this can be accomplished in excel but I have had no success.

bl00dninja Dec 7th, 2006 3:21 AM

there are 10,000 possibles.
:

psuedocode...
for(i = first known val; i <= last known val; i++)
{
for(j = 0; j < 10000; j++)
{
concatenate i to the end of j
}
}


andro Dec 7th, 2006 1:14 PM

Oiye.

orez35 Dec 7th, 2006 3:39 PM

thankks for the info, you guyas a little ahead of me so please bare with me. If I ma in excel can i simply put that formula into the colum for the last 4 digits. What I am saying is I need my hand held alittle on this one, if you can give more specific directions thank you so much

bl00dninja Dec 8th, 2006 2:56 AM

i would, but i need my hand held also when it comes to excel.

click on help.


All times are GMT -5. The time now is 1:20 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC