Wednesday, August 23, 2017

1006 Average 2 URI Problem Only Solution In C#


using System;

namespace URIApplication{

class URI {

    static void Main(string[] args) {

       double A=Convert.ToDouble(Console.ReadLine());

       double B=Convert.ToDouble(Console.ReadLine());

       double C=Convert.ToDouble(Console.ReadLine());

       double MEDIA=(A*2.0+B*3.0+C*5.0)/10.0;

       Console.WriteLine("MEDIA = "+MEDIA.ToString("0.0"));

    }

}

}

No comments:

Post a Comment