Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <math.h>
- #include <iomanip>
- using namespace std;
- int main() {
- cout << "1. 17 % 3 + 7 / 3 * 2 = " << 17 % 3 + 7 / 3 * 2 << endl;
- cout << "2. 17 % (3 + 7) / 3 * 2 = " << 17 % (3 + 7) / 3 * 2 << endl;
- cout << "3. 17 % (3 + 7 / 3) * 2 = " << 17 % (3 + 7 / 3) * 2 << endl;
- cout << "4. 1 + 49 % 5 + 6 / 3 = " << 1 + 49 % 5 + 6 / 3 << endl;
- cout << "5. (1 + 49) % 5 - 6 / 3 = " << (1 + 49) % 5 - 6 / 3 << endl;
- cout << "6. 1 + 49 % (5 + 7) / 3 = " << 1 + 49 % (5 + 7) / 3 << endl;
- cout << "7. 19 % 8 + 7 / 3 = " << 19 % 8 + 7 / 3 << endl;
- cout << "8. 19 % (8 + 7 / 3) = " << 19 % (8 + 7 / 3) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment