Skip to content

Strings and nested loops · ⁨字符串与嵌套循环⁩

English

Strings and nested loops

  • A String is a row of characters, each with a position (an index).
  • The first index is 0, and the last is length() - 1.
  • In this lesson you walk through a String one character at a time, and put loops inside loops.
中文

字符串与嵌套循环

  • String 是一排字符,每个字符都有一个位置(索引 index)。
  • 第一个索引是 0,最后一个是 length() - 1。
  • 在这节课里,你会一个字符一个字符地遍历字符串,并把循环放进循环里。

Handout

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

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