Jump to content

Welcome to Geeks to Go - Register now for FREE

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
Photo

visuak logic while loooing help


  • Please log in to reply

#1
katie12

katie12

    New Member

  • Member
  • Pip
  • 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

Advertisements


#2
AceInfinity

AceInfinity

    Visiting Staff

  • Visiting Consultant
  • 34 posts
  • MVP
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

Spike

    nOoB

  • Member
  • PipPipPipPip
  • 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:
Posted Image

Which yields this output:
Posted Image


Peace Out :cool:
  • 0

#4
AceInfinity

AceInfinity

    Visiting Staff

  • Visiting Consultant
  • 34 posts
  • MVP

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:
Posted Image

Which yields this output:
Posted Image


Peace Out :cool:


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

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP