Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> //pre-processor directive
- using namespace std; //std library
- int main() //it starts with the main 1st
- {
- int a; //variable a
- int b; //variable b
- int sum;
- cout << "Enter a number dude~ \n";
- cin >> a; //cin-input stream object >>-stream extraction operator
- cout << "enter another number \n";
- cin >> b;
- sum = a+ b;
- cout << "the sum of numbers is " << sum << endl;
- return 0; //to tell that program ran fine
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement