Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim x, y, f, sum As Double
- Dim i As Integer
- x = 1
- y = 3
- sum = 0
- For i = 1 To 13
- f = x / y
- x = y
- y = y + 2
- If i Mod 2 = 1 Then
- f = -f
- End If
- sum = sum + f
- Next i
- Range("A1").Value = sum
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement