#1 tada! bug fixed
This commit is contained in:
parent
41c1f774c5
commit
7ef8ebd1da
@ -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)}");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user