using UnityEngine;

using System.Collections;


public class Chapter5 : MonoBehaviour {


// Use this for initialization

void Start () {

int i = 0, j = 0, count = 0;

for(i = 0; i < 5; i++){

for(j = 0; j < 5; j++){

count += 1;

if(count > 20)

goto EXIT_FOR;

}

}

print ("end of for");

EXIT_FOR:

print (count +", i =" + i + ", j=" + j);

}

// Update is called once per frame

void Update () {

}

}



'Computer Language > 유니티' 카테고리의 다른 글

최대값  (0) 2014.04.22
오버로딩.  (0) 2014.04.21
학생들 성적의 합과 평균 그리고 이름 찍기  (0) 2014.04.21
String.Format 잘 봐두자 유용하게 쓰인다.  (0) 2014.04.21
포맷 형식  (0) 2014.04.21

+ Recent posts