#include <iostream>
int main(){
using namespace std;
int
N = 1234,
Y = 10,
X = N/Y,
Q = X/Y, //Becomes 12
M1 = X%Y, // Using the modulus operator
M2 = X-Q*Y //Using the longer method
;
cout
<< "N: " << N << '\n'
<< "X: " << X << '\n'
<< "Y: " << Y << '\n'
<< "Q: " << Q << '\n'
<< "M1: " << M1 << '\n'
<< "M2: " << M2 << '\n'
;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKXsKICAgIHVzaW5nIG5hbWVzcGFjZSBzdGQ7CgogICAgaW50CiAgICAgICAgTiA9IDEyMzQsCiAgICAgICAgWSA9IDEwLAogICAgICAgIFggPSBOL1ksCiAgICAgICAgUSA9IFgvWSwgLy9CZWNvbWVzIDEyCiAgICAgICAgTTEgPSBYJVksIC8vIFVzaW5nIHRoZSBtb2R1bHVzIG9wZXJhdG9yCiAgICAgICAgTTIgPSBYLVEqWSAvL1VzaW5nIHRoZSBsb25nZXIgbWV0aG9kCiAgICA7CgogICAgY291dAogICAgICAgIDw8ICJOOiAiIDw8IE4gPDwgJ1xuJwogICAgICAgIDw8ICJYOiAiIDw8IFggPDwgJ1xuJwogICAgICAgIDw8ICJZOiAiIDw8IFkgPDwgJ1xuJwogICAgICAgIDw8ICJROiAiIDw8IFEgPDwgJ1xuJwogICAgICAgIDw8ICJNMTogIiA8PCBNMSA8PCAnXG4nCiAgICAgICAgPDwgIk0yOiAiIDw8IE0yIDw8ICdcbicKICAgIDsKCiAgICByZXR1cm4gMDsKfQ==