This is an exercise for this YouTube video.
Happy learning and good luck!
[qsm quiz=7]
Assignment: Write a method which will add two integers together.
Click to see the answer
static int Add(int a, int b) { return a + b; }
Assignment: Create a method which will be able to either add or subtract two numbers.
Click to see the answer
static int AddOrSubtract(int a, int b, bool isAddition) { if (isAddition) return a + b; return a - b; }