Thursday 29 May 2014

program 12: multiplication table


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----------------------------------------------------


umesh sohaliya
codestrew

No comments:

Post a Comment