0
am i right?
i tried to solve a while loop with an interpreter but there are some mistakes. so i solved it without an interpreter: Dim i, j, n As Long i = 0 n = 0 While i < 20 For j = 1 To 3 n = i + j If i < j Then i = i + j Else i = i + n End If Next j Wend Debug.Print n End Sub my result: n= 1, 3, 6 am i right? and can you tell me where the errors are? many many thanks:)
1 Answer
0
This isn't Python it's Visual Basic (I think). I'd say that's why you're getting errors.