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