예제 #1
0
파일: Program.cs 프로젝트: slmtik/IT-Step
 static void Main(string[] args)
 {
     Problem q = new Problem();
     try
     {
         foreach (var item in q.Solve())
         {
             Console.WriteLine("Корень уравнения " + item);
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: slmtik/IT-Step
 static void Main(string[] args)
 {
     Problem q = new Problem();
     q.Parse(Console.ReadLine());
     Console.WriteLine(q.A + " " + q.B);
 }