Write a program that computes X / M
and X % M
for integers X
and M
.
If argc
is other than three, write a tool tip that shows the order of
the parameters X
and M
.
Different C environments do different things
for this when either or both parameters are
negative.
In all cases it should be true that
M*(X/M) + X%M == X
WARNING: In discrete math the result of integer division is carefully defined and might not correspond to what your program yields.
To print %
with printf use %%
in the format string.