Click to See Complete Forum and Search --> : Basic


SgiGod
February 20th, 2000, 08:45 PM
I need help in code for basic math like
add
subtract
multiply
division

Thanks in Advance
Donny S.

Chris Eastwood
February 21st, 2000, 02:46 AM
>I need help in code for basic math like
>add
>subtract
>multiply
>division

How about:


Dim a as Integer
Dim b as Integer
'
a = 5
b = 6
'
MsgBox "a+b = " & (a+b)
MsgBox "b-a = " & (b-a)
MsgBox "a*b = " & (a*b)
MsgBox "a/b = " & (a/b)





Chris Eastwood

CodeGuru - the website for developers
http://codeguru.developer.com/vb