Question: what is the difference between logical operators and mathematical operators?
Answer: Arithmetic operators deal with number types, such as integers, floats, longs, etc. Depending on the programming language you're using, you may have these types, or maybe just a generic Number type. Logical operators deal with boolean types, which can be either true or false.