operators/motivation/MyInt.cs - The class MyInt. | Lecture 5 - slide 28 : 45 Program 2 |
using System; public class MyInt{ public static int Plus(int a, int b){ return a + b; } public static int Minus(int a, int b){ return a - b; } public static int Multiply(int a, int b){ return a * b; } public static int Quotient(int a, int b){ return a / b; } public static int Remainder(int a, int b){ return a % b; } }