Return to Video

Nested Loops with the artist in Course 4

  • 0:02 - 0:04
    BUCLES IMBRICATS
  • 0:05 - 0:09
    Quan posem un bucle dins d'un bucle,
    n'hi diem bucle imbricat.
  • 0:10 - 0:13
    Per exemple, aquí ja tenim
    el codi per dibuixar un triangle
  • 0:14 - 0:16
    amb costats de 100 píxels de llarg
  • 0:16 - 0:19
    utilitzant el bloc de repetició
    configurat a tres,
  • 0:19 - 0:21
    un cop per cada costat del triangle.
  • 0:21 - 0:23
    Però volem dibuixar sis triangles.
  • 0:24 - 0:26
    Per fer-ho, agafarem aquest bucle
  • 0:27 - 0:29
    i el posarem
    dins d'un altre bloc de repetició.
  • 0:29 - 0:30
    Mola, no?
Title:
Nested Loops with the artist in Course 4
Description:

more » « less
Video Language:
English
Team:
Code.org
Project:
CSF '21-'22
Duration:
0:35

Catalan subtitles

Revisions