PDA

View Full Version : number question in c




dukebound85
Oct 1, 2006, 05:10 AM
Hi all,

i am trying to figure out a way in c to tell you the last digit of a number you typed in but my mind can not think of a way.

any thoughts?

thanks



Mitthrawnuruodo
Oct 1, 2006, 05:19 AM
Would modulus 10 work?

dukebound85
Oct 1, 2006, 05:23 AM
Would modulus 10 work?


haha yes it would
thanks