logo

Crowdly

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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');

}

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на e-learning.msa.edu.eg?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!