1-For i = 1 Tor 2-fac = fac * i 3-F = fac 4-p = fac(n) / (fac(n - m) * fac(m)) 1-For i = 1 To n 2-fac = fac * i 3-F = fac 4-p = F(n) / (F(n - m) * F(m)) 1-For i = 1 To r 2-F = F* i 3-F = fac 4-p =...


1-For i = 1 Tor 2-fac = fac * i 3-F = fac 4-p =<br>fac(n) / (fac(n - m) * fac(m))<br>1-For i = 1 To n 2-fac = fac * i 3-F = fac 4-p =<br>F(n) / (F(n - m) * F(m))<br>1-For i = 1 To r 2-F = F* i 3-F = fac 4-p = F(n)<br>/ (F(n - m) * F(m))<br>1-For i = 1 Tor 2-fac = fac * i 3-fac=F 4-p =<br>F(n) / (F(n - m) * F(m))<br>1-For i = 1 Tor 2-fac = fac * i 3-F = fac 4-p =<br>F(n) / (F(n - m) * F(m))<br>

Extracted text: 1-For i = 1 Tor 2-fac = fac * i 3-F = fac 4-p = fac(n) / (fac(n - m) * fac(m)) 1-For i = 1 To n 2-fac = fac * i 3-F = fac 4-p = F(n) / (F(n - m) * F(m)) 1-For i = 1 To r 2-F = F* i 3-F = fac 4-p = F(n) / (F(n - m) * F(m)) 1-For i = 1 Tor 2-fac = fac * i 3-fac=F 4-p = F(n) / (F(n - m) * F(m)) 1-For i = 1 Tor 2-fac = fac * i 3-F = fac 4-p = F(n) / (F(n - m) * F(m))
This code read the variables n and m<br>then calculate p using Function. p = n! /<br>(n-m)!* m! where n!=1*2*3*.. .*(n-<br>* 1)*n<br>Private Function F(r)<br>Dim i, fac As Integer<br>fac= 1<br>1....<br>2-...<br>Next<br>3-...<br>End Function<br>Private Sub Command1_Click()<br>Dim n, m, p As Integer<br>n = Text1.Text<br>m = Text2.Text<br>4-...<br>Text3.text=p<br>End Sub<br>

Extracted text: This code read the variables n and m then calculate p using Function. p = n! / (n-m)!* m! where n!=1*2*3*.. .*(n- * 1)*n Private Function F(r) Dim i, fac As Integer fac= 1 1.... 2-... Next 3-... End Function Private Sub Command1_Click() Dim n, m, p As Integer n = Text1.Text m = Text2.Text 4-... Text3.text=p End Sub

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here