fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x = 10;
  6. x %= 2;
  7. printf("x = %i", x);
  8. x /= 2;
  9. printf("x = %i" , x);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
x = 0x = 0