Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int sumcif(int n) {
- int x = 0;
- while(n > 0) {
- x += n%10;
- n /= 10;
- }
- return x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement