Birthday Paradox | C # program to approximate number of people in Birthday Paradox problem . ; Returns approximate number of people for a given probability ; Driver code
using System ; class GFG { static double find ( double p ) { return Math . Ceiling ( Math . Sqrt ( 2 * 365 * Math . Log ( 1 / ( 1 - p ) ) ) ) ; } public static void Main ( ) { Console . Write ( find ( 0.70 ) ) ; } }