Function for the difference of two integers

Write a function

    int dif(int x, int y);

which returns the difference betwen xx and yy.

Input

The input is formed by two integers.

Precondition

It holds 0<0 < @x@, @y@ <109< 10^9.

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