Function for the difference of two integers

Write a function

        int dif(int x, int y);

which returns the difference betwen x and y.

Input

The input is formed by two integers.

Precondition

It holds 0< @x@, @y@  < 10⁹.

Observation

You only need to submit the required procedure; your main program will
be ignored.

Problem information

Author: Unknown
Translator: Maria Serna

Generation: 2026-01-25T21:41:46.293Z

© Jutge.org, 2006–2026.
https://jutge.org
