#include #include #include int main() { int d1,d2,total,loop; srand((unsigned)time(NULL)); for(loop=1;loop<=16;loop++) { d1 = rand() % 6 + 1; d2 = rand() % 6 + 1; total=d1+d2; printf("You rolled %d and %d: Total %d\n",d1,d2,total); } return(0); }