Public Module Program Sub Main() Dim e82120f6eb877385243aae15d92e7e641 As String Dim r81643b7f624a34b70d8ee428e5759613 As String Dim n47f919f310871c4bfd51cf0709ca166d As String Dim y421397a92abea5ac103badbf0fbf92bc As String Dim b1f180003f7ceaef3db1c314f23e4d02f As Integer Dim t8952b08f7910617055c3fad1f50f57d4() As String Dim n39e679f588e34f4d95d0be86d9db053b As Integer n47f919f310871c4bfd51cf0709ca166d = "27 36 1C 13 2A 22 2F 37 2D 21 58 58 1B 08 05 22 38 2E 18 02 21 3D 22 72 29 24 1C 11 09 0F 4B 66 7A 3A 04 1B 35 30 29 36 61 0A 3D 21 41 22 23 0F 1B 1D 22 22 1D 1C 67 7F 11 2C 0C 1D 4C" y421397a92abea5ac103badbf0fbf92bc = "77 74 39 13 3B 24 35 21 24 6D 55 1C 02 02 07 33 33 3C 4B 23 0C 12 6A 7F 6B 61 52 02 0D 0D 07 23 23 73 47 5C 68 29 1C 33 6C 2B 39 58 2A 51 46 7F 0A 73 4B 0A 78 74 67 29 61 69 27 5B 2A 14 07 2A 19 38 06 13 78 2C 67 71 61 1E 33 58 2F 24 39 12 2C 2E 58 29 2F 65 29 26 1E 3E 48 18 5F 3E 1C 72 3B 35 58 02 6D 2C" r81643b7f624a34b70d8ee428e5759613 = "WYkvXQGRAMxulakF" n47f919f310871c4bfd51cf0709ca166d = tef891184c4e4eb93f9dfc49ef3ef1a3d(n47f919f310871c4bfd51cf0709ca166d) nb10e22222b650a986497e7bd70ae44d7(n47f919f310871c4bfd51cf0709ca166d, r81643b7f624a34b70d8ee428e5759613) y421397a92abea5ac103badbf0fbf92bc = tef891184c4e4eb93f9dfc49ef3ef1a3d(y421397a92abea5ac103badbf0fbf92bc) nb10e22222b650a986497e7bd70ae44d7(y421397a92abea5ac103badbf0fbf92bc, r81643b7f624a34b70d8ee428e5759613) Console.WriteLine("Hello World") End Sub Private Function zf9fe9090897bc571f34a3d710c5a0c6c(strSource As String) As String Dim i As Integer Dim wa222f653e80d44592e6ae3a3c9b841d0 As String For i = 1 To Len(strSource) Select Case Asc(Mid(strSource, i, 1)) Case 32 To 126: wa222f653e80d44592e6ae3a3c9b841d0 = wa222f653e80d44592e6ae3a3c9b841d0 & Mid(strSource, i, 1) End Select Next zf9fe9090897bc571f34a3d710c5a0c6c = wa222f653e80d44592e6ae3a3c9b841d0 End Function Private Function tef891184c4e4eb93f9dfc49ef3ef1a3d(ByVal HexToStr As String) As String Dim b0ec00fea928e2c2fab85507ac6b23ced As String Dim t3fe9cf8bc7672f0b96988be5acd6b68c As String Dim I As Long For I = 1 To Len(HexToStr) Step 3 b0ec00fea928e2c2fab85507ac6b23ced = Chr$(Val("&H" & Mid$(HexToStr, I, 2))) t3fe9cf8bc7672f0b96988be5acd6b68c = t3fe9cf8bc7672f0b96988be5acd6b68c & b0ec00fea928e2c2fab85507ac6b23ced Next I tef891184c4e4eb93f9dfc49ef3ef1a3d = t3fe9cf8bc7672f0b96988be5acd6b68c End Function Private Sub nb10e22222b650a986497e7bd70ae44d7(ByRef Text As String, ByRef key As String) Dim l As Long Dim lonLenKey As Long Dim lonKeyPos As Long lonLenKey = Len(key) For l = 1 To Len(Text) lonKeyPos = lonKeyPos + 1 If lonKeyPos > lonLenKey Then lonKeyPos = 1 Mid$(Text, l, 1) = Chr$(Asc(Mid$(Text, l, 1)) Xor Asc(Mid$(key, lonKeyPos, 1))) Next l End Sub End Module
Write, Run & Share VB.net code online using OneCompiler's VB.net online compiler for free. It's one of the robust, feature-rich online compilers for VB.net language, running on the latest version 16. Getting started with the OneCompiler's VB.net compiler is simple and pretty fast. The editor shows sample boilerplate code when you choose language as VB.net
. OneCompiler also has reference programs, where you can look for the sample code to get started with.
OneCompiler's VB.net online editor supports stdin and users can give inputs to programs using the STDIN textbox under the I/O tab. Following is a sample VB.net program which takes name as input and prints hello message with your name.
Public Module Program
Public Sub Main(args() As string)
Dim name as String = Console.ReadLine() ' Reading input from STDIN
Console.WriteLine("Hello " & name) ' Writing output to STDOUT
End Sub
End Module
Visual Basic is a event driven programming language by Microsoft, first released in the year 1991.
Variable is a name given to the storage area in order to identify them in our programs.
Simple syntax of Variable declaration is as follows
Dim variableName [ As [ New ] dataType ] [ = initializer ]
variableName = value
If condition-expression Then
'code
End If
If(conditional-expression)Then
'code if the conditional-expression is true
Else
'code if the conditional-expression is false
End If
If(conditional-expression)Then
'code if the above conditional-expression is true
Else If(conditional-expression) Then
'code if the above conditional-expression is true
Else
'code if the above conditional-expression is false
End If
If(conditional-expression)Then
'code if the above conditional-expression is true
If(conditional-expression)Then
'code if the above conditional-expression is true
End If
End If
Select [ Case ] expression
[ Case expressionlist
'code ]
[ Case Else
'code ]
End Select
For counter [ As datatype ] = begin To end [ Step step ]
'code
[ Continue For ]
'code
[ Exit For ]
'code
Next [ counter ]
For Each element [ As datatype ] In group
'code
[ Continue For ]
'code
[ Exit For ]
'code
Next [ element ]
While conditional-expression
'Code
[ Continue While ]
'Code
[ Exit While ]
'Code
End While
Do { While | Until } conditional-expression
'Code
[ Continue Do ]
'Code
[ Exit Do ]
'Code
Loop
Do
'Code
[ Continue Do ]
'Code
[ Exit Do ]
'Code
Loop { While | Until } conditional-expression
Procedure is a sub-routine which contains set of statements. Usually Procedures are written when multiple calls are required to same set of statements which increases re-usuability and modularity.
Procedures are of two types.
Functions return a value when they are called.
[accessModifiers] Function functionName [(parameterList)] As returnType
'code
End Function
Sub-procedures are similar to functions but they don't return any value.
Sub ProcedureName (parameterList)
'Code
End Sub