Skip to content

Until you type stop · ⁨直到输入 stop⁩

English

Until you type stop

Read words one at a time until the word stop arrives, then report how many came before it.

Read the first word before the loop, so the condition has something to test. Inside the loop, count the word and then read the next one. When you press Run, type each word and press Enter.

中文

直到输入 stop

一次读取一个单词,直到出现 stop,然后报告它之前有多少个单词。

在循环之前先读第一个单词,这样条件才有东西可以判断。在循环里,先计数,再读下一个单词。点击运行后,每输入一个单词就按回车。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩