반응형
- For문
for (int i = 0; i < 10; i++) {
print("현재 값은 $i");
}
- Switch문
int grade = 80;
switch (grade) {
case 90:
print("Grade is A");
break;
case 80:
print("Grade is B");
break;
case 70:
print("Grade is C");
break;
default:
print("Grade is not A, B, or C");
break;
}
반응형