### Description

This is a convenient shorthand to calculate the remainder when one integer is divided by another and assign it back to the variable the calculation was done on.

### Syntax

`x %= divisor; // equivalent to the expression x = x % divisor;`

### Parameters

`x`

: variable. **Allowed data types:** int

`divisor`

: **non zero** variable or constant. **Allowed data types:** int