Vbscript Simple Equation
Channel:
Subscribers:
11,400
Published on ● Video Link: https://www.youtube.com/watch?v=5mqd1UDbJCs
Code for Area Equation
dim r,pi,A
r = inputbox("Enter the radius")
pi = 3.1416
A = msgbox("The Area of the circle is "& (pi * r^2))
Code for Volume Equation
dim r,pi,V,h
r = inputbox("Enter the radius")
h = inputbox("Enter the height")
pi = 3.1416
V = msgbox("The Area of the circle is "& (pi * r^2 * h))
Code for Simple Calculator
dim Var1,Var2,Calc
Var1 = inputbox("Enter the first number")
Var2 = inputbox("Enter the 2nd number")
Calc = inputbox("Enter + for addition, - for subtraction, * for multiplication, and / for division")
if Calc = "+" then msgbox(Var1 -- Var2)
if Calc = "-" then msgbox(Var1 - Var2)
if Calc = "*" then msgbox(Var1 * Var2)
if Calc = "/" then msgbox(Var1 / Var2)
Other Videos By Ace1000ks1975
Tags:
Vbscript Math
Vbscript Input Equations
Vbscript Math Functions