modulus operator can be applied to which of these

Modulus operator, %, can be applied to which of these?

Question: Modulus operator, %, can be applied to which of these? Floating-point numbers Integers Both Integers and floating-point numbers. None of these​ Solution: Modulus operator can be applied to both integers and floating point numbers. So the answer is option 3. What is Modulus operator %? The modulo operator, denoted by %, is an arithmetic …

Modulus operator, %, can be applied to which of these? Read More »