//no of people have difftent birthday
float x=1.0;
//numerator and denominator
float numerator=365;
float denominator=365;
//no of people
int people=0;
//take the p vale that has to be computed
//percentage that atlest two people have same birthday
float probablity;
cin>>probablity;
//run the loop
while(x>1-probablity){
x=x*(numerator/denominator);
numerator–;
people++;
cout<<"people : “<<people<<” the value of x : "<< x<<endl;
}
cout<<"Hello World!";