Question

What value is assigned to  lblSum.Text by the following code ? Dim intTotal As Integer = 0...

What value is assigned to  lblSum.Text by the following code ?
Dim intTotal As Integer = 0
For intOuter = 1 To 3
For intInner = intOuter To 3
intTotal += intOuter * intInner
Next
Next
lblSum.Text = intTotal.ToString()

Can someone explain this please?

0 0
Add a comment Improve this question Transcribed image text
Answer #1
intTotal = 1*1 + 1*2 + 1*3 + 2*2 + 2*3 + 3*3
= 1 + 2 + 3 + 4 + 6 + 9
= 25

Answer: 25

\;\;

Add a comment
Know the answer?
Add Answer to:
What value is assigned to  lblSum.Text by the following code ? Dim intTotal As Integer = 0...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT