Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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,357 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