PDA

View Full Version : (VBS) Simple but so impossible


velious
06-01-2004, 09:23 PM
How can i write a program that solves for x in this following equation:

x + 2 = 4

obviously x = 2, but how do I program a computer to tell me that?
like how do i say "ok, now minus 2 on both sides"?. Can someone help me.
:o

Jason
06-02-2004, 12:20 AM
maybe if you had the equation
x + y = z
and you plug y and z into the equation you can use an if statement to figure out whether to add or subtract y on both sides thus giving you x....


Jason

velious
06-02-2004, 06:12 AM
thanks