#include // printf #include // rand and srand #include // time int roll_dice() { return (rand()%6)+1; } int main() { srand(time(0)); // we don't care about the decimal places int Average = 0; // TODO: execute this 100 times and calculate the average; int value = roll_dice()+roll_dice(); printf("The average is %d", Average); }