# Division

5 / 2 = 2 -- the remainder is discarded.

What is the value of **ticketsPerPerson** after 
this code is executed?

```csharp
int tickets = 5;
int people = 2;

int ticketsPerPerson = tickets / people;
```

## 2
Since both the numerator and denominator are
integers, the statement on line 4 performs
integer division. The remainder or decimal code
is discarded and only the integer portion of the
answer is returned.

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/apprentice)

Updated: October 16, 2026

## In other subjects

- [Division in C#](https://www.ask-codey.com/glossary/division-c-sharp-java)

Source: https://www.ask-codey.com/glossary/division
