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+c;
  8. p=a*b*c;
  9. cout<<s<<endl<<p;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5284KB
stdin
2 3 5
stdout
10
30