Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement