topical media & game development
graphic-processing-learning-06-example-6-4-example-6-4.pde / pde
// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com
// Example 6-4: Infinite loop. Don't do this!
int x = 0;
while (x < 10) {
println(x);
// Decrementing x results in an infinite loop here because the value of x will never be 10 or greater.
// Be careful!
x = x - 1;
// This line quits the loop so that this sketch does not crash
// Comment it out to see Processing crash! (save everything else first!)
break;
}
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.