Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. int sumcif(int n) {
  2. int x = 0;
  3. while(n > 0) {
  4. x += n%10;
  5. n /= 10;
  6. }
  7. return x;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement