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 integer whole numbers only
dim name as string'this is a string of characters
dim doB as datetime'this is date time datatype
dim gender as char'this is a character
dim height as integer' this is in metres
dim license as boolean'this is true or false
'Assignment statements
Age = 38
Name ="Chuknorris"
'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 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