FizzBuzz/Basic: Difference between revisions

m (Fixed BASIC sub-headings.)
Line 184:
80 END</syntaxhighlight>
See also [[#Minimal BASIC|Minimal BASIC]].
 
==={{header|Craft Basic}}===
<syntaxhighlight lang="basic">do
 
let i = i + 1
let f = 1
 
if i % 15 = 0 then
 
let f = 0
print "FizzBuzz"
 
endif
 
if i % 3 = 0 and f = 1 then
 
let f = 0
print "Fizz"
 
endif
 
if i % 5 = 0 and f = 1 then
 
let f = 0
print "Buzz"
 
endif
 
if f = 1 then
 
print i
 
endif
 
loop i < 100</syntaxhighlight>
 
===FreeBASIC===
305

edits