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
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
English,
1 day ago
English,
1 day ago
Science,
2 days ago
Social Sciences,
8 months ago
Hindi,
8 months ago