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