Console.Write-line | vb.net | draw table using code
Module Module1
Dim i, j, n As Integer
Sub Main()
Console.WriteLine("How many line do u want:")
n = Console.ReadLine()
For i = 1 To n
For j = 1 To n
Console.Write(j)
Next
n = n - 1
Console.WriteLine()
Next
Console.ReadLine()
End Sub
End Module
Module Module1
Dim i, j, n As Integer
Sub Main()
Console.WriteLine("How many line do u want:")
n = Console.ReadLine()
For i = 1 To n
For j = 1 To n
Console.Write(j)
Next
n = n - 1
Console.WriteLine()
Next
Console.ReadLine()
End Sub
End Module
0 comments: