Question: I am having a hard time understanding the following code:

```
if ((number % 10)> max) //rem of 10
{
    max = (number % 10);
}
number /= 10;

```

Could you please help me with this?

Answer: 
I guess the code you posted is the body of a loop, like this:

```
int max = 0;
while (number != 0) {
    if (number % 10 > max) {
        max = number % 10;
    }
    number /= 10;
}

```

This loop finds the largest decimal digit of number. E.g. if `number==152`, you will get `max==5` after the loop.
If the last digit of `number` is larger than `max`:

```
if ((number % 10)> max)

```

Then `max` equals the last digit

```
max = (number % 10);

```

Remove the last digit

```
number /= 10;

```

When you put this in a loop, it let's you find the largest digit in the `number`.