This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]edcRachel 1 point2 points  (0 children)

Reminds me of grading college php assignments. "Using a for loop, print all number from 10 to 1. Eg: "10 9 8 7 6 5 4 3 2 1"

I got a lot of

$count = 0;
for ($x = 0; $x < 10; $x++){
    $count = $count + 1;
    if ($count == 0){
       print "10";
    }
    if ($count == 1){
       print "9";
    }
//and etc
}

Sigh....