<Declaring Variables>
Dim <name> As <Datatype> [= <data>]
Dim numberOfCows As Integer
Dim temperature As Single
Dim sentense As String = "Hello everyone!"
Dim hasPaid As Boolean = False
```
Module Module1
Sub Main()
Dim x As String = "Hello World"
Console.Write("The value is ")
Console.WriteLine(x)
Console.ReadLine()
End Sub
End Module
```
<Arithmetic Operator>
1. Modulus: x = 2Mod5
2. Power Of: x = 2^5
3. Concat: s = "Hello " & "World"
'Computer General > VB.NET' 카테고리의 다른 글
| Hello world with VB.net (0) | 2017.06.05 |
|---|---|
| VB.NET 기본 개념2 (0) | 2017.06.05 |
| VB.Net 기본개념 (0) | 2017.06.05 |