-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProgram.vb
More file actions
33 lines (26 loc) · 841 Bytes
/
Copy pathProgram.vb
File metadata and controls
33 lines (26 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Imports System
Module Program
Sub Main(args As String())
' Boolean
Dim isStart As Boolean = True
Console.WriteLine($"Start {isStart}")
' Integer
Dim value As Integer = 20
Console.WriteLine($"Value {value}")
' Byte
Dim number As Byte = 19
Console.WriteLine($"Number: {number}")
' Decimal(Float)
Dim decimalNumber As Decimal = 4.5F
Console.WriteLine($"Decimal {decimalNumber}")
' Double
Dim doubleNumber As Double = 10.54D
Console.WriteLine($"Decimal number {doubleNumber}")
' String
Dim name As String = "Billy"
Console.WriteLine($"Name: {name.ToUpper}")
' Char
Dim alphabet As Char = "B"
Console.WriteLine($"Alphabet {alphabet}")
End Sub
End Module