Candidates are appearing for interview one after other. Probability of each candidate getting selected is 0.16. What is the expected number of candidates that you will need to interview to make sure that you select somebody?

#include<bits/stdc++.h>
using namespace std;
int main () {
cout<<06.25;
return 0;
}

But it is showing error after submission

Number of candidates has to be an interger!
Print 7 dude and get through with the question :slight_smile:

2 Likes

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.