Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Feb 13th, 2016
63
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
C++
0.16 KB
| None
|
0
0
raw
download
clone
embed
print
report
#include <iostream>
using
namespace
std
;
int
n
;
int
main
(
)
{
cin
>>
n
;
int
res
=
0
;
while
(
n
)
{
res
+
=
n
%
10
;
n
/
=
10
;
}
cout
<<
res
;
}
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
✅ Free Money Exploit
CSS | 24 min ago | 0.94 KB
Huge Bitcoin Profits
CSS | 25 min ago | 0.94 KB
Untitled
54 min ago | 3.30 KB
Untitled
1 hour ago | 22.79 KB
Untitled
3 hours ago | 6.98 KB
Untitled
3 hours ago | 16.20 KB
Copy Squad Ops: Process Chat Meetup Cal Invit...
5 hours ago | 0.69 KB
DCS ChatGPT Debug
5 hours ago | 25.54 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!