早教吧 育儿知识 作业答案 考试题库 百科 知识分享

运用VB程序,求解sinx=cx;c为常数,急于完成作业

题目详情
运用VB程序,求解sinx=cx;c为常数,急于完成作业
▼优质解答
答案和解析
Private Sub Command1_Click()
Dim x As Single, c As Single
x = Val(Text1.Text)
c = (Sin(x)) / x
Text2.Text = c
End Sub