Versionsvergleich
Aus ProgrammingWiki
Vergleich: 2021-01-19T08:42:44+00:00 → 2021-01-19T09:30:21+00:00
<language>Javascript</language> | |
<h1>Titelseite NiAl</h1> | |
<hr> | |
<p>Willkommen zur Titelseite</p> | |
Freund und Helfer beim Programmieren: [http://www.google.com Google] | |
| + | |
| + | <h2>Schleifen:</h2> |
| + | <h3>For-Schleife</h3> |
| + | |
| + | <code id="60069ff1bee6e"> |
| + | a = 0; |
| + | for(i=1 ; i<10 ; i++) { a += i; } |
| + | |
| + | |
| + | b = true; c = 1; |
| + | for(a=false ; b!=false ; c+=2) |
| + | { |
| + | if(c < 10 && a == true){b = false} |
| + | if(a == false && c < 10){a = true} |
| + | } |
| + | </code> |
| + | |
| + | <h3>While-Schleife</h3> |
| + | <code id="60069ff1befcf"> |
| + | a = 1; b = 1; |
| + | while(a == 1) |
| + | { if(b < 10){a = 2}else{b++}; } |
| + | </code> |
| + | |
| + | <run id="6006a65f6ac3f"> |
| + | a = 1; b = 1; |
| + | while(a == 1) |
| + | { if(b < 10){a = 2}else{b++}; } |
| + | </run> |