mariusqw

Untitled

Apr 27th, 2020
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <math.h>
  4. #include <iomanip>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9.  
  10. cout << "1. 17 % 3 + 7 / 3 * 2 = " << 17 % 3 + 7 / 3 * 2 << endl;
  11. cout << "2. 17 % (3 + 7) / 3 * 2 = " << 17 % (3 + 7) / 3 * 2 << endl;
  12. cout << "3. 17 % (3 + 7 / 3) * 2 = " << 17 % (3 + 7 / 3) * 2 << endl;
  13. cout << "4. 1 + 49 % 5 + 6 / 3 = " << 1 + 49 % 5 + 6 / 3 << endl;
  14. cout << "5. (1 + 49) % 5 - 6 / 3 = " << (1 + 49) % 5 - 6 / 3 << endl;
  15. cout << "6. 1 + 49 % (5 + 7) / 3 = " << 1 + 49 % (5 + 7) / 3 << endl;
  16. cout << "7. 19 % 8 + 7 / 3 = " << 19 % 8 + 7 / 3 << endl;
  17. cout << "8. 19 % (8 + 7 / 3) = " << 19 % (8 + 7 / 3) << endl;
  18.  
  19. return 0;
  20. }
Add Comment
Please, Sign In to add comment