Skip to content

Instantly share code, notes, and snippets.

@dsbraz
Created July 7, 2010 21:16
Show Gist options
  • Save dsbraz/467291 to your computer and use it in GitHub Desktop.
Save dsbraz/467291 to your computer and use it in GitHub Desktop.
C#
10.downto(0).do(
() => Console.WriteLine("0")
);
10.times (
i => Console.WriteLine(i)
);
Java
for (int i = 10; i > 0; i--) {
System.out.println("0");
}
for (int i = 0; i < 10; i++) {
System.out.println(i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment