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,
17 days ago
English,
17 days ago
Science,
1 month ago
Social Sciences,
9 months ago
Hindi,
9 months ago