My issue
what is wrong with this code?
My code
#include <iostream>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n;
cin>>n;
char N;
cin>>N;
char OutputChar;
if(N=='A'){
OutputChar='T';
}
else if(N=='T'){
OutputChar='A';
}
else if(N=='C'){
OutputChar='G';
}
else if(N=='G'){
OutputChar='C';
}
else{
cout<<"Please enter a valid Input"<<endl;
continue;
}
cout<<OutputChar;
}
return 0;
}
Problem Link: DNASTRAND Problem - CodeChef