Пример #1
0
        private static void SimpleHeat()
        {
            var a    = double.Parse(Console.ReadLine());
            var h    = double.Parse(Console.ReadLine());
            var heat = new SimpleHeat(a, h);

            Console.WriteLine("begin...");
            heat.Run(1, 1.5 * Math.Pow(h, 2));
            Console.WriteLine("end");
            Console.ReadKey();
        }
Пример #2
0
        private static void SimpleHeat(int taskNumber)
        {
            //Console.Write("A = ");
            //var a = double.Parse(Console.ReadLine().Replace(".", ","));
            var a = 0.5;

            Console.Write("H = ");
            var h    = double.Parse(Console.ReadLine().Replace(".", ","));
            var heat = new SimpleHeat(a, h, taskNumber);

            Console.WriteLine("begin...");
            heat.Run(1, 1.5 * Math.Pow(h, 2));
            Console.WriteLine("end");
            Console.ReadKey();
        }