#include #define ZERO 48 #define NINE 57 #define TRUE 1 #define FALSE 0 #define SPACE 32 #define TAB 11 int main() { int c = 0; int count = 0; int i=0; int array[i]; int precedingWhitespace = TRUE; //First char need no whitespace; printf("Please enter dice values:\n"); while ((c = getchar()) != EOF) { if (c >= ZERO && c <= NINE) { //Convert to number c -= 48; if (!(c >= 1 && c <= 6)) { printf("Value out of Range.\n"); } count++; array[i]=c; precedingWhitespace = FALSE; if (count>5) { printf("Incorrect Number of Values.\n"); } else if ( c == SPACE || c == TAB ){ if (precedingWhitespace==FALSE) { precedingWhitespace = TRUE; } } else { printf("Incorrect Input Format\n"); } } i++; } i=0; while (i