eolymp

Решение на C#

Пример программ с использованием файлов для ввода/вывода

using System;
using System.IO;

public class Sum
{
  private static void Main()
  {
      StreamReader streamReader = new StreamReader("input.txt");
   int ab = Convert.ToInt32(streamReader.ReadLine());
 
      int b  = ab %10;
      int a  = ab/10;
     
      StreamWriter sw = new StreamWriter("output.txt");
      sw.WriteLine(a+" "+b);
      sw.Close();
     
  }
}

Пример программ с использованием консоли для ввода/вывода

using System;

public class Sum
{
  private static void Main()
  {
   int ab = Convert.ToInt32(Console.ReadLine());
      int b  = ab %10;
      int a  = ab/10;
      Console.WriteLine(a+" "+b);
  }
}