My first FizzBuzz question (well, I asked, then deleted, one previously), and my very first VB.NET question.
Module Module1
Function FizzBuzzify(ByVal Value As Integer) As String
If Value Mod 5 = 0 And Value Mod 3 = 0 Then
Return "FizzBuzz"
End If
If Value Mod 3 = 0 Then
Return "Fizz"
End If
If Value Mod 5 = 0 Then
Return "Buzz"
End If
Return Value
End Function
Sub FizzBuzz(ByVal MinValue As Integer, ByVal MaxValue As Integer)
For index = MinValue To MaxValue
Console.WriteLine(FizzBuzzify(index))
Next
End Sub
Sub Main()
FizzBuzz(1, 100)
End Sub
End Module
Please tell me the good, bad, and awful so I do, don't, and don't do the same in my next venture into VB land.