Given a number return the closest number to it that is divisible by 10.

Example input:

```
22
25
37
```

Expected output:

```
20
30
40
```

Source: codewars | Difficulty: EASY
Tags: Fundamentals

Mathematics

Starter code: def closest_multiple_10(i):
	

Solutions:
def closest_multiple_10(i):
	return round(i, -1)


def closest_multiple_10(i):
	return round(i / 10) * 10


def closest_multiple_10(i):
	r = i % 10
	return i - r if r < 5 else i - r + 10


closest_multiple_10 = lambda x: round(x, -1)


def closest_multiple_10(x):
	return x - x % 10 if x % 10 < 5 else x - x % 10 + 10


def closest_multiple_10(i):
	return (i + 5) // 10 * 10


def closest_multiple_10(i):
	return int(i / 10 + 0.5) * 10


def closest_multiple_10(i):
	for j in range(int(i - 5), int(i + 6)):
		if j % 10 == 0:
			i = j
	return i


closest_multiple_10 = lambda x: round(x / 10) * 10