Checking to see if a number ends in 5?
<p>I'm trying to define a function that takes 2 parameters, adds them up, and if the sum of the two parameters ends in 5, it reports a 2. If it doesn't end in 5, it returns 8.</p>

<p>Any ideas?</p>

<p>I was thinking of doing an if statement, but I'm confused as to how I would check if a number ends in 5( or is 5).</p>

<p>Thanks for your help, trying to teach myself how to program is so difficult yet so rewarding :)</p>
