#include <iostream>using namespace std; int main() {int x = 10;x %= 2;printf("x = %i", x);x /= 2;printf("x = %i" , x); return 0;}
Standard input is empty
x = 0x = 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!