38.7k views
0 votes
Computer science practical on VB.NET. program 1. program to find the square of a number. write the code achieve it​

User Mzuba
by
3.7k points

1 Answer

1 vote

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 Jonauz
by
4.2k points