VB Program To Demonstrate Constant
VB Program To Demonstrate Constant
Imports System.Console
Module Constant1
Sub Main()
Const pi = 3.14159
System.Console.WriteLine("Area=" & Str(pi * 10 * 10))
End Sub
End Module
NOTE: select program to decide given character consonant or oval write by your
own.
Sub Main()
Dim strt As String = "welcome to kits"
Dim strt1 As String
Dim strt2, strt3 As String
Dim res, conv As Integer
strt1 = strt.ToUpper
System.Console.WriteLine("Ucase " & strt1)
strt2 = strt.Substring(1, 5)
System.Console.WriteLine("substring " & strt2)
conv = 200
strt3 = Str(conv)
res = Val(strt3)
System.Console.WriteLine("ValMethod " & res)
System.Console.ReadKey()
End Sub
End Module