Funcition for the sum of the min and max of three integers

Implementa function

        int sum_min_max(int x, int y, int z);

which given three numbers returns the sum of their minimum and maximum
values.

Input

Input consists of three integer numbers.

Precondition

It holds 0< @x@, @y@, @z@  < 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-25T16:23:29.263Z

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