Last 2 digits same

Write an exercise program that reads two integers and checks if the last two digits entered numbers are identical. In the event that the same appears to be the same, otherwise they are different.

EXAMPLE:

Enter 2 Numbers: 315 15
They are the same

Enter 2 Numbers: 247 374
They are different

I basically need to know how to write this in c++ so the last digits on the numbers are the same or not.
Presumably you've been recently introduced to the modulus operator (%). Use it or, if you haven't been exposed to it, google it.
Topic archived. No new replies allowed.