RosettaCodeData/Task/Flow-control-structures/C-sharp/flow-control-structures-5.cs

8 lines
159 B
C#
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
while (conditionA) {
for (int i = 0; i < 10; i++) {
if (conditionB) goto NextSection;
DoSomething(i);
}
}
NextSection: DoOtherStuff();