C programming on visual studio windows console applicationSo
C++ programming on visual studio windows console application
Solution
The above code is very efficient .
It has a good design in terms of modularity and coding standards for variables.
The logic is simple to understand and there are no unecessary code segments.
The above code should work perfectly.
The rolldice function returns the no of dice rolls required to get that sum of two dice values.
In that function two random numbers are generated to represent 2 dice which are added and checked against condition.every iteration roll count is incremented.
When condition is true ,roll count is returned

