Question: Can someone help me get this dice roll program down. I got this far, but errors are coming up for srand(). I am trying to
Can someone help me get this dice roll program down. I got this far, but errors are coming up for srand(). I am trying to ask for user input for seeding srand. Thanks
This is C programming
Scroll down for my program attempt. 
#include
int main() { int s, n, sum = 0, i, pairs = 0, roll1, roll2; printf("Enter the seed value: "); scanf("%d", &n); srand(s); printf("Enter the number of rolls: "); scanf("%d", &n); for(i = 1; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
