Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Module VBModule
Sub Main()
dim Age as integer 'this is a integer whole members only'
dim Name as string 'this is a string of characters'
'dim Dob as date 'this is date time datatype'
dim Gender as char
dim Height as integer
dim License as boolean
'Assignment statements'
Age = 38
Name = "ChuckNorris"
'DoB' = "21/01/1980"
Gender = "M"
Height = 2
License = True
Console.WriteLine("Hello, world! Mr" & Name )
Console.WriteLine("Your Age is " & Age )
'Console.WriteLine("Your DOB is " & Date)
Console.WriteLine("Yor Gender is " & Gender)
Console.WriteLine("Your height is: " & Height )
Console.WriteLine(" Do you have a license " & License)
End Sub
End Module
Advertisements
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.
AcceptLearn more