Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started