ЗАДАЧА 2 ВАРИАНТ 1

 avatar
9teenz
csharp
a year ago
402 B
8
Indexable
using System;

public class Program
{
    public static void Main()
    {
        int a = Convert.ToInt32(Console.ReadLine());
        int b = Convert.ToInt32(Console.ReadLine());
        int num1 = (a / (int)Math.Pow(10, 3 - 2)) % 10;
        int num2 = (b / (int)Math.Pow(10, 3 - 3)) % 10;
        Console.Write("Ответ = " + num1 + num2);
    }
}
// Сделал женек всемогущий!
Editor is loading...
Leave a Comment