Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Confluence
For you

Programming
Results will update as you type.
  • Tiling and Repetition
  • Reactors
  • Programming Basics: Parametric and Generative Graphic Design 2016
  • Archive
  • High Scores
  • Artificial Neural Network
  • Alternatives to the Processing IDE
  • p5.js Programming
  • Programming in Processing (java)
    • Starting with Processing (en)
    • Variables (en)
    • Classes and Objects (en)
    • Events und Functions (en)
    • Writing our own Functions (en)
    • Random Numbers (en)
    • Conditionals (en)
    • Loops (en)
      • Schleife (de)
    • Nested Loops (en)
    • Coordinates (en)
    • Arrays and Lists (en)
    • SVG + Images (en)
    • Motion and Temporality
    • Gesture Interactions
    • Using bitmaps as modifiers
    • Vectors
    • Animation
    • Animation 2
    • Simple Collision Detection
    • Sound
    • Typography

    Two hearts overlapped with each other
    Welcome back
    Catch up on the top discussions and highlights from your team.
    /
    Schleife (de)

    Schleife (de)

    Sep 22, 2017

    Eine Schleife ist ein Kontrollstruktur mit welcher ein Programmblock wiederholen werden kann. Zusätzlich enthalten Schleifen eine Bedingung welche bestimmt wievielmal der Programmblock wiederholen werden soll.

    Es gibt verschieden Schleifentypen:

    For-Schleife

    for([Variablen Init.],[Bedingung],[Fortsetzung]) {
    }

    for(int i=0; i <= 100; i++)
    {
       println(i);
    }

    While-Schleife

    while([Bedingung]) {
    }

    int x=0;
    while(x <= 100)
    {
       println(x);
       x++;
    }

    Do-While-Schleife

    do{
    } while([Bedingung]);

    int x=0;
    do
    {
       println(x);
       x++;
    }while(x <= 100);

    Aufgabe

    Erstelle ein Programm welches einen Wald auf den Bildschirm zeichnet


    , multiple selections available,
    {"serverDuration": 20, "requestCorrelationId": "5357148e94af492393d99594ce331c12"}