title: How to treat integers from a string as multi-digit numbers and not individual digits?
body: <p>My input is a string of integers, which I have to check whether they are even and display them on the console, if they are. The problem is that what I wrote checks only the individual digits and not the numbers.</p>
  
  <pre><code>string even = "";
  
  while (true)
  {
      string inputData = Console.ReadLine();
      if (inputData.Equals("x", StringComparison.OrdinalIgnoreCase))
      {
          break;
      }
  
      for (int i = 0; i &lt; inputData.Length; i++)
      {
          if (inputData[i] % 2 == 0)
          {
               even +=inputData[i];
  
          }
      }
  
  }
  foreach (var e in even)
      Console.WriteLine(e);
  bool something = string.IsNullOrEmpty(even);
  if( something == true)
  {
      Console.WriteLine("N/A");
  }
  </code></pre>
  
  <p>For example, if the input is:
  12
  34
  56
  my output is going to be
  2
  4
  6 (every number needs to be displayed on a new line).
  What am I doing wrong? Any help is appreciated.</p>