Skip to content

(강*근, 강의노트 7강) #97

@mingeun0418

Description

@mingeun0418

while문에서 i += 1 위치에 따라 결과가 달라지는 걸 확인했는데,
직접 코드를 실행해보니까 반복문 끝에 둘 때랑 시작 부분에 둘 때 결과가 다르게 나왔습니다.
왜 이런 차이가 나는지 궁금하고, i를 어디에 두는 게 맞는지도 알고 싶습니다.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions