hey im trying to do this question
Use a for Next Loop to convert Euros $50 to $100 to the equivalent amount Australian dollars increasing by $10 each time.
the exchange rate is 1.3777.
needs to look like this
Euro$ AUS$
$50 $68.85
$60 $82.62
$70 $96.39
$80 $110.16
$90 $123.93
$100 $137.70
so far this is what i have
Option Explicit
Dim intEuro
Dim curAUD
Dim msgLine
Dim msgNextLine
Const Exchange Rate = 1.3777
i dont get what i have to do from there please helpp
3 replies to this topic
#1
Posted 25 April 2011 - 09:05 PM
|
|
|
#2
Posted 26 April 2011 - 05:47 AM
For Next loops are written this way in VB: (simplified)
Source: For...Next Statement (Visual Basic)
For counter [ As datatype ] = start To end [ Step step ] [ statements ] Next [ counter ]That should get you started.
Source: For...Next Statement (Visual Basic)
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
#3
Posted 27 April 2011 - 01:50 AM
nah man, i need it in .vbs not .vb
#4
Posted 27 April 2011 - 05:07 AM
Here's the documentation on how to do For loops in VBScript:
VBScript Looping Statements
Basically the same thing, except you don't need the counter after the Next. Example: (taken from the site)
VBScript Looping Statements
Basically the same thing, except you don't need the counter after the Next. Example: (taken from the site)
For i=2 To 10 Step 2 some code Next
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









