If you want them to show (be printed) at the same time, then save the values, and print them up at the same time.
Code:
int len = strlen(arrayString);
int i = 0;
int firstNumber = -99;
while(i < len) {
if(isdigit(arrayString[i])) {
firstNumber = arrayString[i]);
}
if(your second test is true)
variable = arrayString[i] statement
++i;
}
print up your saved variables from the scan of the array, here
Don't print up the firstNumber, if it still equals -99, since that shows there was no digit in the string, at all.
Like that?