fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int a = 5, b = 3, sum;
  7. cout<<a<<endl;
  8. cout<<b<<endl;
  9. sum = a+b;
  10. cout<<"The sum is "<<sum;
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 4328KB
stdin
Standard input is empty
stdout
5
3
The sum is 8