0% found this document useful (0 votes)
14 views

Practical No.6 Aim: WAP To Get Input From Keyboard and Find Sum, Subtraction, Multiplicationand Division of Numbers

Dot net programDot net programDot net programDot net Dot net programDot net programnet programDot net programt net program

Uploaded by

anon_946460383
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Practical No.6 Aim: WAP To Get Input From Keyboard and Find Sum, Subtraction, Multiplicationand Division of Numbers

Dot net programDot net programDot net programDot net Dot net programDot net programnet programDot net programt net program

Uploaded by

anon_946460383
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Practical No.6 Aim: WAP to get input from keyboard and Find Sum,Subtraction,Multiplicationand division of numbers.

1. SUM Module Module1 Sub Main()

Dim a, b, c As Integer Console.WriteLine("Enter 1st number:") a = Convert.ToInt32(Console.ReadLine()) Console.WriteLine("Enter 2nd number:") b = Convert.ToInt32(Console.ReadLine()) c = a + b Console.WriteLine("Sum:" & c)

Console.ReadLine()

End Sub End Module

2. Subtraction

. Module Module1 Sub Main()

Dim a, b, c As Integer Console.WriteLine("Enter 1st number:") a = Convert.ToInt32(Console.ReadLine())

Console.WriteLine("Enter 2nd number:") b = Convert.ToInt32(Console.ReadLine()) c = a - b Console.WriteLine("Sub:" & c)

Console.ReadLine()

End Sub End Module

3. Multiplication Module Module1 Sub Main()

Dim a, b, c As Integer Console.WriteLine("Enter 1st number:") a = Convert.ToInt32(Console.ReadLine())

Console.WriteLine("Enter 2nd number:") b = Convert.ToInt32(Console.ReadLine()) c = a * b Console.WriteLine("Multiplication:" & c)

Console.ReadLine()

End Sub End Module

4. Division

Module Module1 Sub Main()

Dim a, b, c As Integer Console.WriteLine("Enter 1st number:") a = Convert.ToInt32(Console.ReadLine())

Console.WriteLine("Enter 2nd number:") b = Convert.ToInt32(Console.ReadLine()) c = a / b Console.WriteLine("Division :" & c)

Console.ReadLine()

End Sub End Module

You might also like