TOPIC

esta aqui a minha resposta pra quem precisar

nickrlt asked 1 year ago

using System; using System.Globalization;

namespace primeiro { class Program { static void Main(string[] args) {

       int A, B, C, N1, N2;
        string[] v = Console.ReadLine().Split(' ');

        A = int.Parse(v[0]);
        B = int.Parse(v[1]);
        C = int.Parse(v[2]);

        N1 = (A + B + Math.Abs(A - B)) / 2;
        N2 = (N1 + C + Math.Abs(N1 - C)) / 2;

        Console.WriteLine(N2 + " eh o maior");

    }
}

}

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.