answersLogoWhite

0

Add two numbers in vb

Updated: 4/28/2022
User Avatar

Wiki User

14y ago

Best Answer

Its easy.

Dim a as Integer

Dim b as integer

Dim count as integer

count = 0

a = 1

b = 2

count = a + b

Then the result will be 3

That's all

Need any help on IT? mail to lasitha2005d@yahoo.com

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Add two numbers in vb
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you find the average of three numbers using vb script?

Add the numbers, then divide by three. I don't know vb script, but in most programming languages it would be something like this: result = (a + b + c) / 3


What is all of the Fibonacci numbers in nature?

Its indefinite: Start with 0,1 add last two numbers = 1 add to sequence = 0,1,1 add last two numbers = 2 add to sequence = 0,1,1,2 add last two numbers = 3 add to sequence = 0,1,1,2,3 add last two numbers = 5 add to sequence = 0,1,1,2,3,5 add last two numbers ......... add to sequence ..........


What does add operator do?

Add two numbers.


What number is halfway between 300 and 600?

Add the two numbers, and divide the result by 2.Add the two numbers, and divide the result by 2.Add the two numbers, and divide the result by 2.Add the two numbers, and divide the result by 2.


What numbers must you add to make an even number?

You must add either two odd numbers or two even numbers.


Input two numbers and get the average?

Add the two numbers and divide that by two.


What do you call the result when you add two numbers?

when you add two or more numbers together, the result is called the sum


What two prime numbers add up to 119?

No two prime numbers can add to 119.


How do you find the average for two numbers?

-- Add the two numbers. -- Divide that total by two.


When you add two numbers together the answer is called?

When you add two (or any number of) numbers together, the result is called the sum.


What are all Fibonacci numbers?

start with 0,1 add together =1 add to sequence, gives 0,1,1 add last two numbers =2 add to sequence, gives 0,1,1,2 add last two numbers =3 add to sequence, gives 0,1,1,2,3 add last two numbers = 5 add to sequence, gives 0,1,1,2,3,5 repeat forever, list is endless


When i add the two numbers i get the sum of 96 .When i subtract the two numbers i get a difference of 56.What are the two numbers?

The numbers are: 76 and 20