02-07-2010, 01:33 AM
I can't program in C, but from what I remember of VB
[spoiler][code=vb]Option Explicit
Private sub forum_main
dim whole as integer
dim count as integer
dim threeresult as double
dim fiveresult as double
<subroutine "counter">
count = 1
count = count+1
threeresult = count/3
fiveresult = count/5
If threeresult is integer
print "Fizz"
If fiveresult is integer
print "Buzz"
If threeresult is integer and fiveresult is integer
print "FizzBuzz"
else
print count
end if
</subroutine "counter">
If count <100
call counter
else
end
end if
End sub[/code][/spoiler]
I can't remember the command for creating a subroutine, but considering I haven't coded in over 2 years I've not done bad
[spoiler][code=vb]Option Explicit
Private sub forum_main
dim whole as integer
dim count as integer
dim threeresult as double
dim fiveresult as double
<subroutine "counter">
count = 1
count = count+1
threeresult = count/3
fiveresult = count/5
If threeresult is integer
print "Fizz"
If fiveresult is integer
print "Buzz"
If threeresult is integer and fiveresult is integer
print "FizzBuzz"
else
print count
end if
</subroutine "counter">
If count <100
call counter
else
end
end if
End sub[/code][/spoiler]
I can't remember the command for creating a subroutine, but considering I haven't coded in over 2 years I've not done bad
As you do...