Skip to content

Commit

Permalink
Solve beginner's Problem #682
Browse files Browse the repository at this point in the history
  • Loading branch information
ParitoshAggarwal committed Oct 29, 2018
1 parent ddb9e9c commit d651920
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions SOLUTIONS/beginer2.0.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--){
int n;
cin>>n;
int a[n];
for(int i=0;i<n;i++)
cin>>a[i];
for(int i=0;i<n;i++){
if(a[i]%2==0){
cout<<a[i]<<endl;
break;
}
}
}
return 0;
}

0 comments on commit d651920

Please sign in to comment.