Wednesday, August 23, 2017

1005 Average 1 URI Problem Only Solution In C#


using System;

class URI {

    static void Main(string[] args) {

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

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

       double x=(a*3.5)+(b*7.5);

       double y=x/11.0;

       Console.WriteLine("MEDIA = "+y.ToString("0.00000"));

    }

}

No comments:

Post a Comment