Answered step by step
Verified Expert Solution
Link Copied!

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. image text in transcribed

#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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions