Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting last number

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
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!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top