Проверьте правильность написания кода для Visual Basic Тема "Программирование задач в VB, содержащие сложные циклы"
___________________________________________________________________________
___________________________________________________________________________
Private Sub Command1_Click()
Dim x, y, s, p, f, f1, a, t As Single
x = -5
p = 1
For n = 2 To 7
f = 1
For a = 1 To n - 1
f = f * a
Next a
p = p * ((n + 1) / (n - 1))
Next n
s = 0
For k = 3 To 6
f1 = 1
For t = 1 To 2 * k
f1 = f1 * t
Next t
s = s + (2 * k / (k ^ 3 + 5))
Next k
z = p ^ 3 - 1
Print z
End Sub
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Copyright © 2024 SCHOLAR.TIPS - All rights reserved.