Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Oct 14th, 2019
85
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.17 KB
| None
|
0
0
raw
download
clone
embed
print
report
void sum_cif(int n, int &s)
{
s = 0;
if(n < 0)
n *= -1;
while(n)
{
s += n%10;
n /= 10;
}
return;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 5.32 KB
Untitled
1 hour ago | 17.84 KB
Untitled
3 hours ago | 14.09 KB
Untitled
5 hours ago | 14.94 KB
Untitled
6 hours ago | 5.83 KB
Untitled
7 hours ago | 9.82 KB
Untitled
9 hours ago | 12.23 KB
Untitled
11 hours ago | 14.35 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!