• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Who can code?
#2
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
[Image: Bulbasaur_by_bigsharn.jpg]
As you do...
  Reply


Messages In This Thread
Who can code? - by Pack3t SynAck3r - 02-07-2010, 01:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [C++] Minesweeper Trainer - Source Code Clones 0 9,155 13-11-2011, 01:19 PM
Last Post: Clones

Forum Jump: