Guest User

Untitled

a guest
Nov 19th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Public Class Form1
  2.  
  3. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4. Dim a, b, sayi, deger As Integer
  5. If Val(TextBox2.Text) <> 1 Then
  6. sayi = Val(TextBox2.Text)
  7. a = 1
  8. b = 2
  9. For z = 1 To sayi - 2
  10. deger = b
  11. b = a + b
  12. a = deger
  13. Next z
  14. End If
  15. TextBox1.Text = a
  16. End Sub
  17. End Class
Add Comment
Please, Sign In to add comment