Ten is extremely popular and attractive number. Everyone wants to be a ten. Or at least as close to it as possible. Two numbers are standing around wondering which of them is cooler. Answer: whichever is closer to ten. Let's write these numbers a displayClosestToTen method that will determine which of them is cooler.

# Closest to 10

- 4

abs(int a)can be used to return absolute number. First substract the given numbers from ten and store them in a new variable (c and d for example).The result can also be a negative number. Use the if() statement to return a number for the giving conditions and don't forget to put the number inside the method so it's always positive. Good luck! Hint: if(abs(c) < abs(d) )...