Math
Lesson 9Author : 🦒
Last Updated : November, 2017
Video Code
printf("%d \n", 2 * 3); // Basic Arithmetic: +, -, /, *
printf("%d \n", 10 % 3); // Modulus Op. : returns remainder of 10/3
printf("%d \n", 1 + 2 * 3); // order of operations
printf("%f \n", 10 / 3.0); // int's and doubles
int num = 10;
num += 100; // +=, -=, /=, *=
printf("%d \n",num);
num++;
printf("%d \n", num);
printf("%f \n", pow(2, 3));
printf("%f \n", sqrt(144));
printf("%f \n", round(2.7));