C# Algorithm #1 – Sum 2 Int’s

C# Algorithm #1 – Sum 2 Int’s

In this video, we will walk through a simple C# Algorithm example where you take 2 numbers and calculate their sum. If both values are the same however, you need to triple the sum and return that instead. 

We also learn about the Ternary operator and how to utilize it to shrink down bulky If statements in code. 

Pin It on Pinterest