[Music] okay another example let's say for example i have three divided by two so our expected result should be 1.667 or 1.67 but for programming if you divide a whole number to a whole number the resulting value is just a whole number not with fractional components or decimal numbers so in this case the value here is just one or the resulting value is just one while for the remainder if that is three modulo two again we get the remainder when we divide three and two and that is also one so to make it easier and for you to find out how are we going to get the quotient and how are we are getting the remainder we use the standard or the normal divisions that we uh follow during our elementary and high school days when we say three divided by two this is actually the format three divided by two so in getting the quotient so this is one one times two two three minus two is one this is the quotient and this is the remainder please take note of that okay so another example is for example i have 3 divided by 2.0 or 2.00 so this time it's no longer 1 but instead with 1.667 or the other way around 3.0 divided by 2 that's still 1.667 or both have a fractional component 3.0 divided by 2.0 is equal to 1.667 but if the numerator and other denominator is just an integer or a whole number the resulting value should be or must be a whole number so take note of that when we are dealing with the quotient okay last what if i have two divided by three so the answer here is zero okay but if it's two divided by three point zero it's zero point with the value in decimal now let's go back to the remainder what if our remainder is 3 modulo 2.0 okay so this is invalid so take note that for the remainder it must be integer on the left operand and integer as well on the right operand we cannot divide or we cannot get the remainder if there is a decimal or fractional component within the modulus division please take note of that another thing is for example i have two modulo three so what's the answer short that is if the left operand or the numerator is slower than the denominator or the right operand just copy the left operand and the final answer or the result is two regardless of how big is the value for example twenty modulo one one four so the answer is still twenty so let's have the examples for arithmetic operators so again don't forget to follow the hierarchy of priority of operators so if you encounter a parenthesis expressions in the parenthesis we need to process it first before the expressions outside the parentheses so this is 10 plus 4 times 18 so we all know that multiplication is higher than addition so we need to multiply first 4 to 8 and then add the resulting value of 4 times 8 to 10 so that's 42. next modulus division in minors so again priority of operator should be modulus division then followed by minus so we need to get the remainder first of 50 modulus division of 6 so again so how are we going to do that so 50 divided by six so this is um eight i think this is 48. this is 2 so the remainder is 2 a then subtract 2 2 5 so that's negative 3 then another example 20 divided by 4 times 9 so all are the same hierarchy or level of priority so in that case we need to follow the associativity of processing it from left to right so it should be twenty divided by four first then five so the resulting value five will be multiplied to nine and that's forty five let's have another example so for example we have two times three plus four divided by two minus parenthesis seven plus eight and modulo division of 5 so in this case we need to process first the expressions within the parentheses so i'm going to use 2 times 3 plus four divide by two minus eight plus seven plus eight is fifteen more just division of five okay so we process first the expressions inside the parentheses then we have multiplication plus division minus and modulus division so here multiplication division and modulus division are in the same level so we need to priorities them then since they are at the same level of hierarchy so we need again to follow the associativity of processing it from left to right so this becomes 2 times three six four divided by two is two fifteen modulo five is zero okay so again how can i get zero from the remainder so again 5 divided by 15 this is 3 3 times 15 is 3 times 5 is 15 15 minus 15 is zero so again this is the quotient and this is the remainder so next following by addition and subtraction so again same level of priority so we need to follow the associativity rule of processing it from left to right so i need to add first six to two so this becomes eight then minus it with zero so that becomes eight so the final answer is eight for string expressions we only use the plus sign plus sign is not addition but rather this is concatenation concatenation means combining two strings together to get the resulting value so let's say for example i have a string three concatenated it with string four so the answer is string three four then another example is i have a stream glow concatenate it with a string ring so the resulting value is string chlorine so these are the following examples of incorrect usage of the plus or concatenate operator so for example you have string 3 plus numeric 4 so you cannot process a string and concatenated two numeric should be string plus a string as well so these two examples are incorrect because from the first example the right operand is four and that is numeric and the other one is on the left operand that is 100 so you can actually concatenate the values or join the values of a numeric one to a string one another type of expressions that we're going to use is the relational or comparison operators or expressions so please follow the symbols greater than less than greater than or equal to less than or equal to not equal to n is equal to so you do not use the less than or greater than or equal to same as a format in mathematics you should use this type of symbol [Music] you