123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ClassLibrary1
- {
- public class Class1
- {
- public double fun1(double a, double b)
- {
- double rez = fun2( a, b);
- Console.WriteLine($"Промежуточное значение rez {rez}");
- return (a * b) / rez;
- }
- public double fun2(double a , double b)
- {
- while(b!=0)
- {
- double temp = b;
- b = a % b;
- a = temp;
- }
- Console.WriteLine($"Промежуточное значение a {a}");
- return a;
- }
- }
- }
|