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. Can someone help me get this dice roll program down. I got

#include #include #define size 10

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!