英文:
how to draw infinte in a flowchart
问题
我正在学习流程图,想要在流程图中展示这段代码,希望能够打印无限次而不声明计数器。请注意,我没有声明任何计数器。
for (;;){
System.out.println("helloworld");
}
英文:
I was learning flowcharts, wanted to show this code in a flowchart, wanted to print infinite times without declaring a counter. please note I haven't declared any counter.
for (;;){
System.out.println("helloworld");
} }
答案1
得分: 2
无限循环就像任何其他循环一样,是一个回到先前点的箭头。
通常,你仍然会像往常一样在循环开始处放置一个条件(菱形/钻石形状),但只有一条外出路径。
英文:
An infinite loop is like any other loop an arrow that goes back to a previous point.
Usually, you still place a condition (rhombus/diamond shape) at the start of the loop as usual, but there is only one outgoing path.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论