fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a, b, c;
  5. cin>>a;
  6. b=a/10+a%10;
  7. c=a/10*a%10;
  8. cout<<b<<" "<<c<<endl;
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5284KB
stdin
45
stdout
9 0