#include #include #include int dice(int y); int main() { int k,x,y; char quit; do { printf("Enter dice quantity :"); scanf("%d", &y); printf("Enter the number of the dice faces :"); scanf("%d", &x); printf("You rolled: "); srand(time(0)); for (k = 0; k < y; ++k) printf("%d ", rand() % x + 1); printf("\nAgain? (y/n) \n"); scanf("%s", &quit); } while (quit=='y' || quit=='Y'); printf(" /* Program Terminated */ \n\n"); return 0; }