Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
The modulus operator (written as % in most programming languages) divides two numbers and returns the remainder. For example, ```10 % 3``` will result in 1, because 3 goes into 10 3 times with 1 left over. 1 is the remainder.