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

9teenz avatar
9teenz
csharp
02/11/2024 6:25 AM
536 B
16
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