Computer Science, asked by sameerbansode, 1 month ago

PrepBuddy is getting late for college. She is looking for a matching pair of socks from a box full of socks. In the worst-case scenario, how many socks should PropBuddy remove from her drawer(total N pair of socks present in thr drawer)until she finds a matching pair. For example of N=2, then she needs to remove 3 socks to get a pair.​

Answers

Answered by akansha1312be21
0

Answer:

Explanation:

#include <bits/stdc++.h>

using namespace std;

int main()

{

 int t;

 cin>>t;

 while(t--){

   int n;

   cin>>n;

   cout<<n+1<<endl;

 }

 

 return 0;

}

Similar questions