خود ازمایی فصل 6 سوال 1-عدد کوچکتر به توان عدد بزرگتر
Private Sub cmdrun_Click()
n1 = Val(Text1.Text)
n2 = Val(Text2.Text)
Text3.Text = tavan(n1, n2)
End Sub
n1 = Val(Text1.Text)
n2 = Val(Text2.Text)
Text3.Text = tavan(n1, n2)
End Sub
Public Function tavan(ByVal n1 As Integer, ByVal n2 As Integer)
If n1 < n2 Then
t = n1 ^ n2
Else
t = n2 ^ n1
End If
tavan = t
End Function
+ نوشته شده در پنجشنبه ۲۶ آذر ۱۳۸۸ ساعت 12:36 توسط صادق و علیرضا_(SARS)
|