SHARE
TWEET

Untitled

a guest Dec 3rd, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top