daily pastebin goal
44%
SHARE
TWEET

Untitled

a guest Oct 23rd, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int a;
  6.     cin >> a;
  7.     cout <<  a % 10 + a / 10 % 10 + a / 100 % 10;
  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