Question: C++ Program The simpler the code the better! In a dice game, you get the total you roll on two dice, unless they are the
C++ Program
The simpler the code the better!
In a dice game, you get the total you roll on two dice, unless they are the same, in which case you get double what they total. Write a program that helps score the game. Read in two integers from the console. If they are different, print their sum. If they are the same, print double their sum. Hint: you are NOT programming the game, just calculating a score from the numbers that get input (presumably after the player rolls the dice).
Expected values are 4, 16, 7, 4
Given Code:
#include
int main() { //YOUR_CODE }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
