Question: main.cpp / * * Return the sum of two 6 - sided dice rolls, each in the range 1 . . 6 . However, if
main.cpp
Return the sum of two sided dice rolls,
each in the range However, if nodoubles the third parameter
is true, and, if the two dice show the same value, increment one die
to the next value, wrapping around to if its value was
int nodoublesint a int b bool hasdoubles
int result;
Add your code here
return result;
I need this in c please
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
