program to print multiplication table of given number
-----------------------------------------code---------------------------------------------------------
Imports System
Module Module1
Sub Main()
Dim n,
i, mul As Integer
Console.WriteLine("Enter number:-")
n = Console.ReadLine()
Console.WriteLine("Multiplication Table")
For i =
1 To 10
mul = n * i
Console.WriteLine(n & "*" & i & "=" & mul)
Next i
Console.ReadKey()
End Sub
End Module
-----------------------------------------output----------------------------------------------------
codestrew |
No comments:
Post a Comment