-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path03-Input-Output-console.vb
More file actions
31 lines (25 loc) · 933 Bytes
/
Copy path03-Input-Output-console.vb
File metadata and controls
31 lines (25 loc) · 933 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
' Author : Jaydatt Patel
' VB.Net is not case sensitive.
Imports System
module IOConsole
sub main()
dim num as integer
dim float as double
dim ch as char
dim bool as boolean
dim str as string
console.writeline("Enter integer : ")
num = integer.parse(console.readline())
console.writeline("Enter double : ")
float = double.parse(console.readline())
console.writeline("Enter character : ")
ch = console.readline()
console.writeline("Enter boolean (True or False) : ")
bool = boolean.parse(console.readline())
console.writeline("Enter String : ")
str = console.readline()
console.writeline("{0} , {1}, {2}, {3}, {4}", num, float,ch,bool,str)
console.writeline("Enter any key to exit...........")
console.readkey()
end sub
end module