View Single Post
  #5  
Old 10-17-2004, 03:01 AM
amonrabr amonrabr is offline
Scripter
Join Date: Nov 2001
Location: Brazil
Posts: 374
amonrabr is on a distinguished road
Quote:
Originally Posted by xAndrewx
on the devide..

you've done "variable2 = variable2/2;" and you've said the answer is "1.25"

You hadn't assigned variable2 to anything :O.. I think?
Unless it's suppose to be "variable2 = variable1/2;" because variable1 = 2.50?

:o (i don't know if this is wrong or right)

Yes =) You are right. I will fixed that to the next version.

The right way is:

Variable1 = (10/2)/2;
Variable2 = Variable1/2;


Variable1 is 2.5 and Variable2 is 1.25

Reply With Quote