TOPIC

Me ajudem aí!!

Plácido Sucupira asked 6 months ago

Me ajudem aí!!

using System;

namespace Qst3 {

class Program {

   static void Main(string[] args)
    {

        int n = Convert.ToInt32(Console.ReadLine());

        for (int i = 0; i < n; i++)
        {
            int [] MedPon = Console.ReadLine();
            double No1 = double.Parse(MedPon[0]);
            double No2 = double.Parse(MedPon[1]);
            double No3 = double.Parse(MedPon[2]);
            Console.WriteLine(((No1*2 + No2*3 + No3*5) / 10).ToString("0.0"));
        }
    }
}

}

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

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