fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int num1,num2;
  6. cout<<"enter the num1:"<<endl;
  7. cin>>num1;
  8. cout<<"enter the num2:"<<endl;
  9. cin>>num2;
  10. cout<<"sum"<<num1+num2<<endl;
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5288KB
stdin
3
3
stdout
enter the num1:
enter the num2:
sum6