write a visual basic code using the console application that allows one to input the following data from the keyboard ; student name ,registration number, program, phone number ,address.
Module Module1
Sub Main()
Console.Write("Enter the student's name: ")
Dim name As String = Console.ReadLine()
Console.Write("Enter the student's registration number: ")
Dim registrationNumber As String = Console.ReadLine()
Console.Write("Enter the student's program: ")
Dim program As String = Console.ReadLine()
Console.Write("Enter the student's phone number: ")
Dim phoneNumber As String = Console.ReadLine()
Console.Write("Enter the student's address: ")
Dim address As String = Console.ReadLine()
Console.WriteLine(vbNewLine + "The student's name: {0}", name)
Console.WriteLine("The student's registration number: {0}", registrationNumber)
Console.WriteLine("The student's program: {0}", program)
Console.WriteLine("The student's phone number: {0}", phoneNumber)
Console.WriteLine("The student's address: {0}", address)
Console.ReadLine()
End Sub
End Module
Comments
Leave a comment