0% found this document useful (0 votes)
66 views2 pages

GAD Assignment No.3 Program:: Sub Dim As Integer Dim As Integer Dim As Integer Dim As Integer

This document contains code for a program that performs arithmetic operations in VB.NET. It prompts the user to input two numbers, performs addition, subtraction, multiplication, and division on the numbers, then prompts for another number to assign and perform modulus and power operations on it, outputting the results.

Uploaded by

Suyog Sabale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views2 pages

GAD Assignment No.3 Program:: Sub Dim As Integer Dim As Integer Dim As Integer Dim As Integer

This document contains code for a program that performs arithmetic operations in VB.NET. It prompts the user to input two numbers, performs addition, subtraction, multiplication, and division on the numbers, then prompts for another number to assign and perform modulus and power operations on it, outputting the results.

Uploaded by

Suyog Sabale
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

GAD

ASSIGNMENT NO.3

PROGRAM:-
Module Module2
Sub main()
Dim a As Integer
Dim b As Integer
Dim c As Integer
Dim d As Integer

Console.WriteLine("ARITHMATIC OPERATIONS")
Console.WriteLine("ENTER FIRST NUMBER")
a = Console.ReadLine()

Console.WriteLine("ENTER SECOND NUMBER")


b = Console.ReadLine()

c = a + b
Console.WriteLine("ADDITION ={0}", c)

c = a - b
Console.WriteLine("SUBSTRACTION ={0}", c)

c = a * b
Console.WriteLine("MULTIPLICATION ={0}", c)

c = a / b
Console.WriteLine("DIVISION ={0}", c)

Console.WriteLine("ENTER NUMBER TO ASSIGN")


d = Console.ReadLine()

Console.WriteLine("ASSINGMENT ={0}", d)

c = d Mod 3
Console.WriteLine("MODULUS ={0}", c)

c = d ^ 2
Console.WriteLine("POWER ={0}", c)

Console.ReadLine()

End Sub
End Module
OUTPUT:-

You might also like