Presentation is loading. Please wait.

Presentation is loading. Please wait.

MATH By: Mr. McTavish. BASIC OPERATIONS  Addition: +  Subtraction: -  Multiplication: *  Division: /  Modulus (division remainder): %

Similar presentations


Presentation on theme: "MATH By: Mr. McTavish. BASIC OPERATIONS  Addition: +  Subtraction: -  Multiplication: *  Division: /  Modulus (division remainder): %"— Presentation transcript:

1 MATH By: Mr. McTavish

2 BASIC OPERATIONS  Addition: +  Subtraction: -  Multiplication: *  Division: /  Modulus (division remainder): %

3 INTEGER ADDITION  Int32 intOp1 = 3;  Int32 intOp2 = 4;  Console.WriteLine("Integer Addition: "  + (intOp1 + intOp2).ToString());

4 DOUBLE ADDITION  Double dblOp1 = 3.1;  Double dblOp2 = 4.2;  Console.WriteLine("Double Addition: "  + (dblOp1 + dblOp2).ToString());

5 INTEGER MULTIPLICATION  Int32 intOp1 = 3;  Int32 intOp2 = 4;  Console.WriteLine("Integer Multiplication: "  + (intOp1 * intOp2).ToString());

6 DOUBLE MULTIPLICATION  Double dblOp1 = 3.1;  Double dblOp2 = 4.2;  Console.WriteLine("Double Multiplication: "  + (dblOp1 * dblOp2).ToString());

7 INTEGER DIVISION  Int32 intOp1 = 3;  Int32 intOp2 = 4;  Console.WriteLine("Integer Multiplication: "  + (intOp1 / intOp2).ToString());

8 DOUBLE DIVISION  Double dblOp1 = 3.1;  Double dblOp2 = 4.2;  Console.WriteLine("Double Multiplication: "  + (dblOp1 / dblOp2).ToString());

9 INTEGER DIVISION  Int32 intOp1 = 3;  Int32 intOp2 = 4;  Console.WriteLine("Integer Multiplication: "  + (intOp1 / intOp2).ToString());

10 INTEGER DIVIDED BY DOUBLE  Int32 intOp1 = 3;  Double dblOp2 = 4.2;  Console.WriteLine("Int Divided by Double: "  + (intOp1 / dblOp2).ToString());

11 INTEGER MODULUS  Int32 intOp1 = 3;  Int32 intOp2 = 4;  Console.WriteLine("Integer Modulus: "  + (intOp1 % intOp2).ToString());

12 DOUBLE MODULUS  Double dblOp1 = 3.1;  Double dblOp2 = 4.2;  Console.WriteLine("Double Modulus: "  + (dblOp1 % dblOp2).ToString());

13 EXPONENTS  Console.WriteLine("Exponents: "  + (Math.Pow(dblOp1,dblOp2).ToString()));

14 SINE  Console.WriteLine("Sin (Warning: Radians!): "  + (Math.Sin(dblOp1).ToString())); Console.WriteLine("Sin (Warning: Radians!): "  + (Math.Sin(dblOp1).ToString()));

15 CONCATENATION  Console.WriteLine(String.Concat("This ","will ","look ","like ","a ","sentence.\n\t","Cool!"));


Download ppt "MATH By: Mr. McTavish. BASIC OPERATIONS  Addition: +  Subtraction: -  Multiplication: *  Division: /  Modulus (division remainder): %"

Similar presentations


Ads by Google