I am quite new to c programming but i was wondering if any one can help me.
i have a unsigned int yearEnrolled = 2001
and i need to be able to detect or assign the last digit of yearEnrolled. So then i can use a switch statement to produce a ID - eg. if last digit is 0 = A, 1 = B etc.
Does anyone know how i can do this by only getting the last digit.