Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works

# visuak logic while loooing help

### #1 katie12 Posted 23 July 2012 - 01:38 AM

katie12

New Member

• Member
• 1 posts
I need help with writing a code in visual logic that comes up with the answers 1 through 10 that says 1 cubed is 1 2 cubed is... and so on all in the same box. Can some one please help possibly show me the screen shot of the code. This is a while loop pribkem. Thank you for your help!
• 0

### #2 AceInfinity Posted 29 July 2012 - 10:39 PM

AceInfinity

Visiting Staff

• Visiting Consultant
• 34 posts
1) There's no such thing as "Visual Logic", you mean "Visual Basic" i'm assuming because "Visual Studio" is an IDE...
2) I don't know what you mean by "box", that could be a textbox, richtextbox, etc... So here's an example using a MessageBox
```For i As Integer = 1 To 10
Dim ans As Integer = Convert.ToInt32(Math.Pow(i, 3))
MessageBox.Show(String.Format("{0} cubed is {1}", i, ans))
Next```

Cheers
~Ace

Edited by AceInfinity, 29 July 2012 - 10:40 PM.

• 0

### #3 Spike Posted 30 July 2012 - 09:37 AM

Spike

nOoB

• Member
• 1,355 posts
Hey Katie,

There in fact does exist something called VisualLogic. But to be fair I never knew about it either until I started seeing people asking questions here on GTG.

Hey AceInfinity,

I hope this can help you and it is what you are looking for:

Which yields this output:

Peace Out
• 0

### #4 AceInfinity Posted 30 July 2012 - 05:49 PM

AceInfinity

Visiting Staff

• Visiting Consultant
• 34 posts

Hey Katie,

There in fact does exist something called VisualLogic. But to be fair I never knew about it either until I started seeing people asking questions here on GTG.

Hey AceInfinity,

I hope this can help you and it is what you are looking for:

Which yields this output:

Peace Out

No, not what I am looking for, but lets hope it is in fact what OP is looking for.
• 0

### Similar Topics

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users