Вложение
Объяснение:
using System;
namespace ConsoleApp1
{
class Program
static void Main(string[] args)
int first = int.Parse(Console.ReadLine());
int second = int.Parse(Console.ReadLine());
if (first == second)
first = second = 0;
else if (first > second)
second = first;
else first = second;
Console.WriteLine("{0} {1}",first,second);
}
Вложение
Объяснение:
using System;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
int first = int.Parse(Console.ReadLine());
int second = int.Parse(Console.ReadLine());
if (first == second)
first = second = 0;
else if (first > second)
second = first;
else first = second;
Console.WriteLine("{0} {1}",first,second);
}
}
}