1. Course
  2. Functions C
  3. Find the minimum and maximum in an array

Find the minimum and maximum in an array


Last updated: 8/23/2020 Difficulty: Intermediate

Create a C# program that implements a function called FindMinMax that receives three parameters, an array of real numbers and two real numbers.

You must request 5 real numbers from the user to create the data array.

The function will calculate the minimum and maximum values ??of the array of real numbers. Send the parameters by reference.

Input

5
8
9
4
3

Output

3
9

Solution

Functions C

5 / 6

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising