ID:269198   Apr 7 2005, 8:16 am (Edited on Apr 7 2005, 8:26 am) ```var q=50 e=30//Way one to do it:var/t=q/2+e/6t*=6//Way two to do it:var/t=q/2*6+e/6*6//Way I want to do it(I want to do it in one line, it doesn't have to be that way):var/t=q/2+e/6*6//Just adding it to the end once ``` Is that possible? I want to get it all done in one line, but just using x6 once.
 Apr 7 2005, 12:00 pm Hell Ramen wrote: ```> var> q=50> e=30> //Way one to do it:> var/t=q/2+e/6> t*=6> //Way two to do it:> var/t=q/2*6+e/6*6> //Way I want to do it(I want to do it in one line, it doesn't have to be that way):> var/t=q/2+e/6*6//Just adding it to the end once ``` Is that possible? I want to get it all done in one line, but just using x6 once. Well, the last line is wrong because you're ignoring operator precedence. The *6 will only apply to the e/6 part. Instead you sohuld use parentheses, like (q/2+e/6)*6. Of course, in this case that's a bad idea, because you can do the whole thing so much easier with q*3+e after you cancel. Lummox JR