Write a function that calculates the probability of getting a sum of n in two dice rolls?
Login to Submit
Input: 2 Output: 1/36 Explanation: There is only 1 possibility to get 2 i.e if both dice displays 1. There are 36 total possibilities. Probability = total outcomes with sum 2 / total possibilities = 1/36