수업

이일원·2021년 10월 26일

파일명은 소문자로 시작한다

반복문

컬렉션

  List<int> nums = [1, 2, 3, 4, 5];

  int total = 0;
  for (int i = 0; i < nums.length; i++) {
    total = total + i;
  }

  print(total);

nums.add(10);
nums.remove(10);

profile
새로운 시도 중...

0개의 댓글