split « decimal « C Data Type Q&A

Home
C Data Type Q&A
1.binary
2.bit
3.byte
4.char
5.character
6.decimal
7.Development
8.float
9.hex
10.integer
11.prime
12.random
13.struct
C Data Type Q&A » decimal » split 

1. How to split up a two-digit number in C    stackoverflow.com

Let's say I have a number like 21 and I want to split it up so that I get the numbers 2 and 1. To get 1, I could do 1 mod ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.