I am practicing C# code on HackerRank online website, when I want to submit my code then it gives an error:
Below is my code:
for(int i=0;i<input.Count-1;i++){
string evenData="",oddData="";
string data=input[i];
for(int j=0;j<data.Length-1;j++){
if(i%2==0){
evenData += data[j].ToString();
}else{
oddData +=data[j].ToString();
}
}
Console.WriteLine(evenData + " " +oddData);
}
I have already search over the internet for this issue but everyone says just add Console.WriteLine because stdout and Console.writeLine both are just like same but it doesn't resolve my problem. Kindly provide me a better solution. Thanks

Use Console.In.ReadLine() and Console.Out.WriteLine() for stdin and stdout.