SniperSA Posted June 4, 2007 Posted June 4, 2007 (edited) Func Square() $x = InputBox("Square","Which # to square?") $y = $x * $x Msgbox(0,"Square",$x & "Squared is:" & $y) EndFunc Func SquareRoot() $a = InputBox("Sqrt","Which # to sqrt?") $b = 0 Do $b = $b + 1 If $a < $b * $b Then Msgbox(0,"Sqrt", $a & "is not a perfect square") ElseIf $a = $b * $b Then Msgbox(0,"Sqrt", $b & "is the sqrt of" & $a) Exit 0 Else EndIf Until $a = $b * $b >Running AU3Check (1.54.7.0) from:C:\Program Files\AutoIt3 C:\Users\Steve\Desktop\New AutoIt v3 Script.au3(21,19) : ERROR: syntax error Until $a = $b * $b ~~~~~~~~~~~~~~~~^ Problem solved.... Missing EndFunc.... Edited June 4, 2007 by SniperSA
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now