logo

Crowdly

Given the following   list, write code to find and print the maximum number in ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Given the following  list, write code to find and print the maximum number in the list.

void main() {

  List<int> numbers = [12, 3, 45, 7, 19];

  int maxNumber = numbers.reduce((a, b) => a > b ? a : b);

  print('Maximum number: $maxNumber');

}

More questions like this

Want instant access to all verified answers on e-learning.msa.edu.eg?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!