- 1). Define a variable to hold the result of the multiplication operation. In Visual Basic, this is done with a Dim statement. To declare an integer use:
Dim thisResult As Integer - 2). Use the multiplication operator "*" with two integers and assign the result to the variable with the statement:
thisResult = 6 * 2
In this instance, the variable thisResult is assigned the value of 12. - 3). Include parentheses in any complex arithmetic statement to specify the order in which the operation is to be performed. Due to operator precedence rules, these two statements produce different results:
thisResult = (2+4) * (1+3)
thisResult = 2+4 * 1 + 3
In the first example, the variable thisResult is assigned a value of 24 since the operators inside the parentheses are evaluated before the multiplication operator. In the second example, thisResult is assigned a value of 9. Visual Basic evaluates multiplication and division before addition or subtraction.
Tags
PHP
Programming
C C++
ASP
Development Tools
Ajax
XML
Javascript
Python
VB
VC
perl
dephi
Ruby
sql
technology
Microsoft Access
Excel
ffice
Powerpoint
Word
Oracle
Related Posts "Technology"
-
SPAwebsolutions Ensure Transform An Standard E-Store To An Excellent One
7/11/2019 8:41:00 AM -
IPraxa Offers Experience Letter on Completion of 3 Months Workshop
7/11/2019 4:43:00 AM -
Things to Consider before Outsourcing to a Web Design Company
7/11/2019 3:52:00 AM -
Great Quality Courtroom Shoes Can Enrich Your Functionality
7/11/2019 2:28:00 AM
You might also like on "Technology"
How to Split a String in JavaScript
7/10/2019 5:52:00 PM
Understanding Needs before Hiring a Programmer
7/10/2019 4:45:00 PM
Are you getting what exactly you expect from your web development services?
7/10/2019 3:40:00 PM
How to Find the Perfect Web Design Company Canada
7/10/2019 10:38:00 AM
impresion de afiches
7/10/2019 8:46:00 AM
We Have All of the Restoration Parts You Need for Your 69 Chevelle
7/9/2019 11:58:00 PM
X-cart developer: The key to successful online store
7/9/2019 7:54:00 PM
Getting Ideas For Running A Successful Web Design Business
7/9/2019 7:07:00 PM
Which Variable Data Types Are Stored in Sequential Order in Visual Basic?
7/9/2019 6:38:00 PM
Let’S Understand the Importance of Website Design.
7/8/2019 5:11:00 PM
Four Steps To Make A Website Visible On The Internet
7/8/2019 4:19:00 PM