|
-
Jun 27th, 2001, 09:40 AM
#1
Thread Starter
New Member
vb variables
Visual Basics, write the statement to add 1,2 and 3 together and multiplythe intermediate result by 4, then raise that intermediate result to the power of 2 store the result in a variable named mintresult
-
Jun 27th, 2001, 09:55 AM
#2
like this?
VB Code:
minresult = ((1 + 2 + 3) * 4) ^ 2
sorry, my maths is off, so i dunno if i've understood 'intermediate result'
-
Jun 27th, 2001, 10:00 AM
#3
me neither nullus...
but I think you got it
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Jun 27th, 2001, 10:02 AM
#4
Frenzied Member
Private Sub Form_Load()
Dim a As Integer
dim b as integer
dim c as integer
dim d as integer
dim e as integer
dim mintresult as integer
a = 1
b = 2
c = 3
d = a+b+c
e = d * 4
mintresult = e * e
'to check the answer put take the comment out of the next
'line
'debug.print minresult
'it will print the answer to the debug section
End Sub
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Jun 27th, 2001, 10:03 AM
#5
Frenzied Member
like this?
visual basic code:--------------------------------------------------------------------------------minresult = ((1 + 2 + 3) * 4) ^ 2
--------------------------------------------------------------------------------
sorry, my maths is off, so i dunno if i've understood 'intermediate result'
So much shorter than mine... DAMN!!!! i think mine might be more easily readable though.
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Jun 27th, 2001, 10:05 AM
#6
wow, i got a maths question right?? good lord!
-
Jun 27th, 2001, 10:06 AM
#7
Lively Member
hehe, I just passes calc in school this semester and don't remember using intermediate, but I'll agree with you both.
but lets make it more complicates
mintresult = (((1 + 2 + 3)*4)^2)
------------------------
x = 1
y = 2
z = 3
(((X + Y + Z)*(y^y))^Y)
I like my way better.
Vini, Vidi, Vici!
-----------------
say this 5 times fast
"I am not a pheasant plucker, I'm a pheasant plucker's son. I'm only plucking pheasants, till the pheasant plucker comes."
-
Jun 27th, 2001, 10:08 AM
#8
Frenzied Member
???????? *** i cannot understand that for the life of me
Government is another way to say better…than…you.
It’s like ice but no pick, a murder charge that won’t stick,
it’s like a whole other world where you can smell the food,
but you can’t touch the silverware.
Huh, what luck. Fascism you can vote for.
Humph, isn’t that sweet?
And we’re all gonna die some day, because that’s the American way
-Stone Sour
-
Jun 27th, 2001, 10:08 AM
#9
Registered User
LOL, Nullus now you and Guv are the maths guys around here.
-
Jun 27th, 2001, 10:09 AM
#10
think i'll be allowed to be the moderator of the Maths forum now?
-
Jun 27th, 2001, 10:21 AM
#11
Registered User
Yeah, they need some fresh blood down there.
-
Jun 27th, 2001, 10:32 AM
#12
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|