Guest User

Untitled

a guest
May 20th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Public Class Form1
  2.  
  3. Private Sub BtnOblicz_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOblicz.Click
  4. Dim G As Single = CSng(TextBox1.Text)
  5. Dim O As Single = CSng(TextBox2.Text)
  6. Dim Ile As Integer
  7.  
  8. Do While G < O
  9. G = G * 2
  10. Ile = Ile + 1
  11.  
  12. Loop
  13. TextBox3.Text = Ile.ToString
  14. End Sub
  15. End Class
Add Comment
Please, Sign In to add comment