public/subjects/mobile-dev/max-num
miguel 50195f75ca docs(numMax): fix the readme 2023-05-18 16:32:10 +01:00
..
README.md docs(numMax): fix the readme 2023-05-18 16:32:10 +01:00

README.md

Max Num

Instructions

Your task is to implement a function maxNum, which should accept three integer parameters and return the maximum of the three.

Usage

void main() {
  print(maxNum(1, 2, 3));
  print(maxNum(0, 0, 0));
  print(maxNum(-1, -5, 0));
}

And its output :

$ dart test.dart
3
0
0
$