The question is very stupid. Assign the entered value from the keyboard to two different variables used in different classes at once. So that the console did not wait to re-enter, as implemented in this example:

Console.WriteLine("Π’Π²Π΅Π΄ΠΈΡ‚Π΅ коэффициСнт усилСния: \nGain="); Active.Gain = Convert.ToDouble(Console.ReadLine()); Passive.Gain = Convert.ToDouble(Console.ReadLine()); 

    1 answer 1

    Just set Passive.Gain to Active.Gain :

     Console.WriteLine("Π’Π²Π΅Π΄ΠΈΡ‚Π΅ коэффициСнт усилСния: \nGain="); Active.Gain = Convert.ToDouble(Console.ReadLine()); Passive.Gain = Active.Gain; 
    • thank. just like - user204299