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 x = 8 * 4;
- int y = 21 % 7; // %-gives remainder of division
- int z = 22 * (4 + 2) + 8 / 2 ; // brackets gets done first obv.
- cout << x <<endl;
- cout << y <<endl;
- cout << z;
- return 0; //to tell that program ran fine
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement