Last active
August 30, 2022 06:57
-
-
Save bluelion79/1aeac95c2dbe0e6619b7569cd1c1c757 to your computer and use it in GitHub Desktop.
A → C → B
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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