Function for the difference of two integers
X51086
Statement
Write a function
int dif(int x, int y);
which returns the difference betwen
and
.
Input
The input is formed by two integers.
Precondition
It holds
@x@, @y@
.
Observation
You only need to submit the required procedure; your main program
will be ignored.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.