assign a value
= operator
Basic arithmetic
+, -, *, / operator
compound assignment
변수 이름을 두 번 작성할 필요 없도록, 현재 변수의 값과 계산한 결과를 다시 현재 변수에 할당함
+=
-=
*=
/=
modulo operator
%
나머지 값을 구함
'[도서] App development with Swift' 카테고리의 다른 글
| Unit 4 - Lesson 8: System View Controllers (0) | 2021.11.06 | 
|---|---|
| Unit 4 - Lesson 5: Table Views (0) | 2021.10.25 | 
| Unit 1 - Lesson 4: Control Flow (0) | 2021.10.22 | 
| Unit 1 - Lesson 2: Constants, Variables, and Data Types (0) | 2021.10.21 | 
| Unit 1 - Lesson 1: Introduction to Swift and Playgrounds (0) | 2021.10.21 |