HACKIS - Hacking Internet Security
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» Tuyệt Kỹ Đong Giai Chân Kinh (tuyệt Kỹ cua trai)
To hop cua mot so EmptyThu Aug 23, 2012 5:38 am by Admin

» Tuyệt kỹ cua giai
To hop cua mot so EmptyThu Aug 23, 2012 5:36 am by Admin

» NETCAT.........
To hop cua mot so EmptyMon Aug 13, 2012 6:35 am by Admin

» Bảo mật CSDL bằng phương pháp mã hóa.
To hop cua mot so EmptyTue Apr 17, 2012 10:04 pm by Admin

» Hàm mã hóa MD5 bằng JavaScript
To hop cua mot so EmptyTue Apr 17, 2012 10:03 pm by Admin

» Giá của món quà
To hop cua mot so EmptyFri Apr 13, 2012 6:01 am by Admin

» Sẽ chỉ yêu ai?
To hop cua mot so EmptyFri Apr 13, 2012 6:01 am by Admin

» Cách đọc bảng chữ cái!
To hop cua mot so EmptyThu Apr 12, 2012 10:37 pm by Admin

» Gắn trojan, keylog, virus vào website, forum
To hop cua mot so EmptyTue Apr 10, 2012 1:14 am by Admin

Affiliates
free forum


To hop cua mot so

Go down

To hop cua mot so Empty To hop cua mot so

Post  Admin Thu Feb 10, 2011 8:21 am

Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim N, P, TH As Integer
        N = CInt(txtN.Text)
        P = CInt(txtP.Text)
        If N - P < 0 Then
            ErrorProvider1.SetError(txtN, "N phai lon hon P")
            Label4.Visible = True
            Label4.Text = ErrorProvider1.GetError(txtN)
            'MsgBox("N khong be hon P", vbOKOnly + vbCritical, "Warning")
            txtN.Text = ""
            txtP.Text = ""
            Return
        Else
            TH = 1
            For i = 1 To P
                TH = TH * (N - i + 1) / i
            Next
        End If
        MsgBox("To hop " & N & " chap " & P & " la: " & TH, vbOKOnly + vbCritical, "Ket Qua")
        txtN.Text = ""
        txtP.Text = ""
    End Sub
Admin
Admin
Admin

Tổng số bài gửi : 782
Join date : 2009-08-15

https://hackis.forumvi.com

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum