kalin729

c = a + b

Sep 28th, 2016
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.24 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int a, b, c;
  7.     cout << "Enter a value for a: " << endl;
  8.     cin >> a;
  9.     cout << "Enter a value for b: " << endl;
  10.     cin >> b;
  11.     c = a + b;
  12.     cout << "Sum: " << c << endl;
  13.     system("pause");
  14. }
Add Comment
Please, Sign In to add comment