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 = 4; //variable a
- int b = 21; //variable b
- int sum = a + b; //summation
- int diff = a - b; // subtraction/difference
- cout << sum << endl;
- cout << diff;
- return 0; //to tell that program ran fine
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement