Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- problema cifre2
- #include <iostream>
- using namespace std;
- int main()
- { int n,r=0,s=0;
- cin>>n;
- while(n)
- { r=r*10+n%10;
- n/=10; }
- s=r%10+(r/10%10);
- cout<<s;
- return 0;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement