Dave Siciliano
Final Approach
Looks like at leasts one credible group is forecasting a lot of VLJs are on the way!
http://tinyurl.com/35bxpl
Best,
Dave
http://tinyurl.com/35bxpl
Best,
Dave
Looks like at leasts one credible group is forecasting a lot of VLJs are on the way!
http://tinyurl.com/35bxpl
Best,
Dave
Take one down, give it to me...
7,599 VLJs on the wall!
vlj = 7600Looks like at leasts one credible group is forecasting a lot of VLJs are on the way!
http://tinyurl.com/35bxpl
Best,
Dave
vlj = 7600
* Format statements
1 format (I2, A)
2 format (A)
3 format (I2, A, /)
4 format (A, /)
* First 7599 or so verses
10 write (*,1) vlj, ' Very Light Jets in the sky,'
write (*,1) vlj, ' Very Light Jets.'
write (*,2) 'Take one down, taxi it around...'
if (vlj - 1 .gt. 1) then
write (*,3) vlj - 1, ' Very Light Jets in the sky.'
else
write (*,3) vlj - 1, ' Very Light Jets in the sky.'
end if
vlj = vlj - 1
if (vlj - 1) 30, 20, 10
* Last verse
20 write (*,1) vlj, ' Very Light Jets in the sky,'
write (*,1) vlj, ' Very Light Jets.'
write (*,2) 'Take one down, pass it around...'
write (*,4) 'Very Light Jets in the sky.'
30 stop
end
<?php for($i = 7600; $i >= 1; $i--) {
echo("$i Very Light Jets in the sky...<br>$i Very Light Jets...<br>");
if($i!=1) {
echo("Take one down, taxi it around...<br><br>");
} else {
echo("Take one down, pass it around...<br>");
}
} ?>
My version:
You can test it here:Code:<?php for($count = 7600; $count >= 1; $count--) { echo("$count Very Light Jets in the sky...<br>"); echo("$count Very Light Jets...<br>"); if($count!=1) { echo("Take one down, taxi it around...<br><br>"); } else { echo("Take one down, pass it around...<br>"); } } ?>
http://dev.jesseangell.com/count.php
7600 Very Light Jets in the sky...
7600 Very Light Jets...
Take one down, taxi it around...
7599 Very Light Jets in the sky...
7599 Very Light Jets...
Take one down, taxi it around...
7598 Very Light Jets in the sky...
7598 Very Light Jets...
Take one down, taxi it around...
7600 Very Light Jets in the sky...
7600 Very Light Jets...
Take one down, taxi it around...
7599 Very Light Jets in the sky.
7599 Very Light Jets in the sky...
7599 Very Light Jets...
Take one down, taxi it around...
7598 Very Light Jets in the sky.
7598 Very Light Jets in the sky...
7598 Very Light Jets...
Take one down, taxi it around...
7597 Very Light Jets in the sky.
Yours does not work right
You are missing the line 'VLJ-1' Very light Jets in the sky after the 'take one down, taxi it around' line
It should look like this
<?php
for($i = 7600; $i >= 1; $i--) {
if($i != 7600) {
echo("$i Very Light Jets in the sky...<br><br>");
}
echo("$i Very Light Jets in the sky...<br>$i Very Light Jets...<br>");
if($i!=1) {
echo("Take one down, taxi it around...<br>");
} else {
echo("Take one down, pass it around...<br>");
echo("No more Very Light Jets in the sky!");
}
}
?>
Some computer geeks just don't have any kind of life, do they?
(This coming from a recovering computer geek!)
Oh come on, programming is sexy. Just ask my girlfriend.
What was her name again? Cloe, Jasmine, Felcia???
So Scott, did you have that page bookmarked for some reason?
My girlfriend, Britney, sent it to me on email after I texted her about your comment
From Jim on the AvSig board regarding the programing above <g>
Your friendly local English teacher is appalled at the programming skills displayed so far.
One must allow for the case of VLJ=1, wherein the text accompanying should read "jet" not "jets" in the sky.
You may have five minutes to debate whether the text should revert to "jets" when the count then iterates to zero.
(If it were a printout on my desk, I'd just write "agr" in the margin.)
Best,
Dave
From Jim on the AvSig board regarding the programing above <g>
Your friendly local English teacher is appalled at the programming skills displayed so far.
One must allow for the case of VLJ=1, wherein the text accompanying should read "jet" not "jets" in the sky.
You may have five minutes to debate whether the text should revert to "jets" when the count then iterates to zero.
(If it were a printout on my desk, I'd just write "agr" in the margin.)
Best,
Dave
D'OH.
I blame Scott for providing the original code. You know how he gets when he travels.