mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2025-12-06 05:32:03 +01:00
13 lines
256 B
C#
13 lines
256 B
C#
double a = 4.5;
|
|
double b = 2.5;
|
|
double answer = Add(a, b);
|
|
|
|
WriteLine($"{a} + {b} = {answer}");
|
|
WriteLine("Press ENTER to end the app.");
|
|
ReadLine(); // wait for user to press ENTER
|
|
|
|
double Add(double a, double b)
|
|
{
|
|
return a + b; // deliberate bug!
|
|
}
|