Help in C with intergers
Posted
by inferno2991
on Stack Overflow
See other posts from Stack Overflow
or by inferno2991
Published on 2010-03-27T23:17:40Z
Indexed on
2010/03/27
23:23 UTC
Read the original article
Hit count: 145
You need to use division and remainder by 10. Consider this example:
163 divided by 10 is 16 remainder 3 16 divided by 10 is 1 remainder 6 1 divided by 10 is 0 remainder 1
You'll notice the remainder is always the last digit of the number that's being divided. Now figure out a way to do this in C...
How do i do it in c Help :(
© Stack Overflow or respective owner