hi i have this program. the question is this :

Write a program that creates an array of 5 strings. The user is then asked to enter
the name, address and telephone number of 5 different people into this array.

Write a function that is capable of finding the door number, any number that
may be included as part of the street name, the number of the post code, and the
telephone number inside a string. It should return the telephone number that is found
in the string.

i am experiancing some reading the digits from the strings! been pulling out alot of hair!. no hair left! pls help?? i also have another problem, if i start inputing the string, if i press space, it skips a label! what can i possibly do? PLS HELP! crazy.gif


Code:
#include <stdio.h>
#include <ctype.h>

int main (void)
{
    char string[5][100];
    int i, j;
    char *labels[] = {"Name","Address","City, State","Zipcode","Phone"};

    for(i=0;i<5;i++)
    {
        for (j=0;j<5;j++)
        {
            printf ("Enter %s: ", labels[j]);
            scanf("%s",&string[i]);
        }
    }
    for(i=0;i<5;i++)
    {
        if (isdigit(string))
        {
            printf("%d. %s\n",i+1,string[i]);
        }
    }

    return (0);
}