operators/motivation/MyInt.cs - The class MyInt. | Lecture 6 - slide 2 : 20 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; } }