Age Learn programming Visual Basic (VB.net)

Lesson:

First contact with Visual Basic (VB.net)


Exercise:

Age 13


Objetive:

Write a Visual Basic (VB.net) program to ask the user for his age (20, for instance) and answer something as "You look younger than 20" (instead of 20, you should display the age that has been entered).


Code:

Imports System
Public Class exercise11
    Public Shared Sub Main()
        Dim age As Integer
        Console.Write("Enter a age ")
        age = Convert.ToInt32(Console.ReadLine())
        Console.Write("You look younger than {0} ", age)
    End Sub
End Class