Skip to content

Instantly share code, notes, and snippets.

@agentphantom

agentphantom/FizzBuzz.as

Last active Jan 15, 2017
Embed
What would you like to do?
FizzBuzz in AS3
package
{
import flash.display.Sprite;
public class FizzBuzz extends Sprite
{
public function FizzBuzz()
{
for (var i:uint = 1; i <= 100; i++) {
if (i % 15 == 0) {
trace("FizzBuzz");
} else if (i % 3 == 0) {
trace("Fizz");
} else if (i % 5 == 0) {
trace("Buzz");
} else {
trace(i);
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.