using System; class Resistor { double R; public Resistor(double R) { this.R = R; } public double GetCurrent(double U) { return U / R; } } public class ResistorRun1 { public static void Main(String[] args) { Resistor R1 = new Resistor(220); Console.WriteLine(R1.GetCurrent(5)); } }