강의

멘토링

커뮤니티

Inflearn Community Q&A

developermin's profile image
developermin

asked

GO Language Programming Core Basics Introduction Course, Easy and Quick to Complete

for

지룸ㄴ있ㅇㅅ브니다

Written on

·

270

0

for i, j := 0, 0; i < 10; i, j = i+1, j+10 {
fmt.Println("i,j", i, j)
}
여기서 마지막 증감식에서
i,j = i+1 , j+10 이
j=i+1 이고 i = j+10 이렇게 봐야하는건가요 ?
너무 헷갈리네요..
go

Answer 2

0

j는 횟수가 증가할때마다 10씩 증가합니다.

i=2일때 j=10+10

3 -> 10+10+10

ㅇㅋ?

0

developermin님의 프로필 이미지
developermin
Questioner

i,j := 3,1 이면

i := 3

j := 1 

이렇게 ㄷ생각하면 되는건가요 ?

developermin's profile image
developermin

asked

Ask a question