Skip to content

Instantly share code, notes, and snippets.

@bluelion79
Last active August 30, 2022 06:57
Show Gist options
  • Save bluelion79/1aeac95c2dbe0e6619b7569cd1c1c757 to your computer and use it in GitHub Desktop.
Save bluelion79/1aeac95c2dbe0e6619b7569cd1c1c757 to your computer and use it in GitHub Desktop.
A → C → B
bool judge = false; //불리언형 judge 변수에 거짓 값 대입
void main() {
A(); //A함수 호출
if (judge) { //judge변수에 참 값이 들어있다면
B(); //B함수 호출
C(); //C함수 호출
} else { //judge변수에 거짓 값이 들어있다면
C(); //C함수 호출
B(); //D함수 호출
}
}
void A() {
print('A'); //A출력
}
void B() {
print('B'); //B출력
}
void C() {
print('C'); //C출력
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment