https://cs50.harvard.edu/x/2023/sections/3/
Week 3 Algorithms - CS50x 2023
Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.
cs50.harvard.edu
좌측에 괄호 안 부분을 attribute 혹은 field 라고 부른다.
+
좌측처럼 candidate를 연속으로 몇번 물어보면서 데이터를 체우게 할 수도 있음
for loop
특정 숫자에 접근하려면 점으로 해서 순서로 특정할수 있음.
Recursion 재귀
예시 : Factorial
좌측과 같이 표현 가능함.
좌측보다도 (미완성임) 더 길게 표현해야하는걸
위처럼 한줄로 표현이 가능하므로 때때로 매우 유용하고 간결함.