Advertisement
a53

circular

a53
May 18th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. long long S,p;
  4. int N,s;
  5. int main()
  6. {
  7. cin>>N;
  8. while(N)
  9. {
  10. p=p*10+1;
  11. s+=N%10;
  12. N=N/10;
  13. }
  14. S=s*p;
  15. cout<<S;
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement