View Problem

Perform an action a fixed number of times with a counter

Display the string "10 .. 9 .. 8 .. 7 .. 6 .. 5 .. 4 .. 3 .. 2 .. 1 .. Liftoff!"
DiskEdit
perl
for (my $i = 10; $i > 0; $i--) {
print "$i .. ";
}
print "Liftoff!";
DiskEdit
perl
print "$_ .. " for reverse 1..10;
print "Liftoff!";
ExpandDiskEdit
java
for(int i=10; i>=1; i--) {
System.out.print(i + " .. ");
}
System.out.print("Liftoff!");

Submit a new solution for perl or java
There are 19 other solutions in additional languages (clojure, cpp, csharp, erlang ...)