From 50195f75caf80c038b9cdacf69f639b034a0e996 Mon Sep 17 00:00:00 2001 From: miguel Date: Fri, 12 May 2023 16:40:08 +0100 Subject: [PATCH] docs(numMax): fix the readme --- subjects/mobile-dev/max-num/README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/subjects/mobile-dev/max-num/README.md b/subjects/mobile-dev/max-num/README.md index 224175eb..60c0a41f 100644 --- a/subjects/mobile-dev/max-num/README.md +++ b/subjects/mobile-dev/max-num/README.md @@ -2,4 +2,24 @@ ### Instructions -Write a function named `maxNum`, which accepts `int` parameters, and returns the maximum number of the three. +Your task is to implement a function `maxNum`, which should accept three integer parameters and return the maximum of the three. + +### Usage + +```dart +void main() { + print(maxNum(1, 2, 3)); + print(maxNum(0, 0, 0)); + print(maxNum(-1, -5, 0)); +} +``` + +And its output : + +```console +$ dart test.dart +3 +0 +0 +$ +```