Hello to all,
I am having problem in random number subtraction in following code. I have create one program that generate random number between 1 to 5 and after that it shows total of it. In the following code 2's and 3's are equal to zero. In this code I have done addition in following ways.
In above code I want to add up the 2's and 3's. Please help me to fix this problem.Code:int sums; sums = rolls1 + rolls2 + rolls3 + rolls4 + rolls5;
Bookmarks