166,865 views
41 votes
41 votes
Computer science practical on VB.NET. program 1. program to find the square of a number. write the code achieve it​

User DenisNovac
by
2.3k points

1 Answer

12 votes
12 votes

Answer:

Module Program

Sub Main()

Dim num As Integer

num = 4

Console.WriteLine("The square of " & num & " is " & num * num)

Console.ReadKey()

End Sub

End Module

Step-by-step explanation:

Very similar to the other program you posted.

User Tim Aych
by
2.9k points