← Back

Function Challenge 2 - Min and Max


Introduction

These functions evaluate and return either the smallest number or the largest number in the given sequence.

Challenge Tasks

  1. Create a console project named FunctionChallenge2MinMax.
  2. Implement functions with the given signatures:

C#

double min(double[] numbers)

double max(double[] numbers)

Python

def min(numbers)

def max(numbers)