#1 tada! bug fixed

This commit is contained in:
Philip Johansson 2022-06-28 21:32:36 +02:00
parent 41c1f774c5
commit 7ef8ebd1da

View File

@ -58,8 +58,7 @@ public class MethodOverloading
ComplexNumber ca = new ComplexNumber(car, cai);
Console.WriteLine("Enter the real part of the second complex number and press Enter key: ");
int cbr = Int32.Parse(Console.ReadLine());
Console.WriteLine("Enter the imaginary part of the second complex number and press Enter key: ");
int cbi = Int32.Parse(Console.ReadLine());
ComplexNumber cb = new ComplexNumber(cbr, cbi);
Console.WriteLine($"The sum of the two complex numbers is {myMethod(ca, cb)}");