大学VB整除运算按要求与步骤的怎么编程?

重点编程程序代码!

第1个回答  2013-10-10
VB中添加程序如下:
Private Sub Command1_click()

If (Val(Text1) Mod 3=0 And Val(Text1) Mod 7=0) Then
Label2.Caption="Yes"
Else
Label2.Caption="No'
End If

End Sub
第2个回答  2013-10-10

全部做好了,看附件:

本回答被提问者采纳
第3个回答  2013-10-10
if(number%3==0 || number%7 ==0){
Text1.Text = "Yes";
}else{
Text1.Text = "No";
}
C#写的,估计你都不会改!!!
第4个回答  2013-10-10

请参考附件。

相似回答