์ผ๋ฐ์ธ์ด ์ซ์ ์๋๋ฒ
1, 2, 3, 4,...
ํ๋ก๊ทธ๋๋จธ๊ฐ ์๋๋ฒ
0, 1, 2, 3.....
๋๋ ๋ ๋ค ์ด๋ค. 1๋ถํฐ ํ๋๊ฒ ํธ๋ฆฌํ๋๊น. ใ ใ
๋ฐฐ์ด์์ string[] inboongs = {"์ฃผ์์ฌ๋ผ๋ผ"," ์ด์ด","ํด๋ณ์์๋ชจ๋์ฑ","L2Games"} for(int i = 0; i < inboongs.Length; i++) {Console.WriteLine(inboongs[i]} ๋ฐฐ์ด์ ๊ฒฝ์ฐ inboongs ๊ธธ์ด๊ฐ 4์ด๋ฏ๋ก ์ฃผ์์ฌ๋ผ๋ผ,์ด์ด,ํด๋ณ์์๋ชจ๋์ฑ,L2Games ์ถ๋ ฅ. inboongs[0]์ผ๊ฒฝ์ฐ ์ฃผ์์ฌ๋ผ๋ผ,inboongs[1]์ผ๊ฒฝ์ฐ ์ด์ด ์ถ๋ ฅ. ์ต๋๊ฐ -1; ์ฝ๋ฉ์ด์ง๋ ํ๊ฐ๋ฆฐ๊ฑด๋ฐ ๊ธธ์ด๊ฐ 4์ด๋ฏ๋ก 1,2,3,4๋ผ๊ณ ์๊ฐํ ์๋์๋๋ฐ ๋ฐฐ์ด์ ๊ธธ์ด์์ ์ปดํจํฐ๊ฐ์๋ 0,1,2,3 ๊น์ง์ธ๊ณ 0,1,2,3 ์ด 4๊ฐ๋๊น ๊ธธ์ด๊ฐ4 ๋ผ๊ณ ํจ.
๋๋ ๋ ๋ค ์ด๋ค. 1๋ถํฐ ํ๋๊ฒ ํธ๋ฆฌํ๋๊น. ใ ใ
๋ฐฐ์ด์์ string[] inboongs = {"์ฃผ์์ฌ๋ผ๋ผ"," ์ด์ด","ํด๋ณ์์๋ชจ๋์ฑ","L2Games"} for(int i = 0; i < inboongs.Length; i++) {Console.WriteLine(inboongs[i]} ๋ฐฐ์ด์ ๊ฒฝ์ฐ inboongs ๊ธธ์ด๊ฐ 4์ด๋ฏ๋ก ์ฃผ์์ฌ๋ผ๋ผ,์ด์ด,ํด๋ณ์์๋ชจ๋์ฑ,L2Games ์ถ๋ ฅ. inboongs[0]์ผ๊ฒฝ์ฐ ์ฃผ์์ฌ๋ผ๋ผ,inboongs[1]์ผ๊ฒฝ์ฐ ์ด์ด ์ถ๋ ฅ. ์ต๋๊ฐ -1; ์ฝ๋ฉ์ด์ง๋ ํ๊ฐ๋ฆฐ๊ฑด๋ฐ ๊ธธ์ด๊ฐ 4์ด๋ฏ๋ก 1,2,3,4๋ผ๊ณ ์๊ฐํ ์๋์๋๋ฐ ๋ฐฐ์ด์ ๊ธธ์ด์์ ์ปดํจํฐ๊ฐ์๋ 0,1,2,3 ๊น์ง์ธ๊ณ 0,1,2,3 ์ด 4๊ฐ๋๊น ๊ธธ์ด๊ฐ4 ๋ผ๊ณ ํจ.