Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
docs:programming:fizzbuzz [2007/07/07 23:45] – billh | docs:programming:fizzbuzz [2008/08/03 00:25] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 36: | Line 36: | ||
===== C++ ===== | ===== C++ ===== | ||
+ | FIXME | ||
+ | |||
+ | ===== C# ===== | ||
FIXME | FIXME | ||
Line 110: | Line 113: | ||
End Sub | End Sub | ||
</ | </ | ||
+ | |||
===== Objective-C (Mac) ===== | ===== Objective-C (Mac) ===== | ||
**FizzBuzz.m** | **FizzBuzz.m** | ||
- | < | + | < |
#import < | #import < | ||
Line 180: | Line 184: | ||
php FizzBuzz.php | php FizzBuzz.php | ||
</ | </ | ||
+ | |||
===== Javascript/ | ===== Javascript/ | ||
- | FIXME | + | **FizzBuzz.htm** |
+ | <code javascript> | ||
+ | <script type=" | ||
+ | var i; | ||
+ | |||
+ | for(i=1; i<=100; i++){ | ||
+ | if(i % 3 == 0 && i % 5 == 0){ | ||
+ | document.write(" | ||
+ | }else if(i % 3 == 0){ | ||
+ | document.write(" | ||
+ | }else if(i % 5 == 0){ | ||
+ | document.write(" | ||
+ | }else{ | ||
+ | document.write(i + "< | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | </ | ||
===== Shell Script ===== | ===== Shell Script ===== |