Sweet, I just got it to work. Look good?
Code:
#include<stdio.h>
#include<string.h>
char main(void)
{
char number[5];
printf("Enter a 5 digit number\n");
printf("XXXXX\n");
scanf("%s",number);
int num[5];
num[0]=(number[0]-48);
num[1]=(number[1]-48);
num[2]=(number[2]-48);
num[3]=(number[3]-48);
num[4]=(number[4]-48);
return 0;
}
As for checking to see if the numbers are between 0 and 9, I was thinking of making a simple function that will contain a while loop that checks to see if num[0]-num[4] are between 0 and 9. Will that work?
Dave