I'm new to C so please bear with me.
I have numbers 1 - 31 and I need to get the last digit off the number and compare against it. For example if the number is 32 I need to get the 2 and if the number is 1 I need to have the 1. Is there any way to do this in C?
Thanks!
I have numbers 1 - 31 and I need to get the last digit off the number and compare against it. For example if the number is 32 I need to get the 2 and if the number is 1 I need to have the 1. Is there any way to do this in C?
Thanks!