Mega Code Archive

 
Categories / VB.Net Tutorial / Class Module
 

Define Integer constant

Module Module1     Sub Main( )        Const FreezingPoint As Integer = 32         Const BoilingPoint As Integer = 212        System.Console.WriteLine("Freezing point of water: {0}", FreezingPoint)        System.Console.WriteLine("Boiling point of water: {0}", BoilingPoint)     End Sub  End Module Freezing point of water: 32 Boiling point of water: 212