ZealOS/src/Demo/SubSwitch.CC

22 lines
297 B
HolyC
Raw Normal View History

2020-02-15 20:01:48 +00:00
U0 SubSwitch()
{
I64 i;
for (i=0;i<10;i++)
switch (i) {
case 0: "Zero "; break;
case 2: "Two "; break;
case 4: "Four "; break;
start:
"[";
case 1: "One"; break;
case 3: "Three";break;
case 5: "Five"; break;
end:
"] ";
break;
}
'\n';
}
SubSwitch;