有没有大神知道这个图形用vb程序怎么做,拜托拜托帮帮忙。还有下面那道验证猜想的题。求助大神帮帮忙啊
2个回答
展开全部
For I = 9 To 1 Step -1
袜耐 For J = I To 1 Step -1
Print "告乱春 ";
Next J
For J = 1 To (10 - 陪差I) * 2 - 1
Print Trim(I);
Next J
Next I
追问
谢谢,谢谢,谢谢,真的谢谢
追答
Sub Main()
Dim I As Integer, J As Integer, K As Integer, A As Integer, B As Integer
I = InputBox("请输入一个偶数:")
If I Mod 2 0 Or I <= 0 Then
MsgBox "请输入一个偶数!", vbCritical
Exit Sub
End If
For J = 2 To I - 1
If SS(J) And SS(I - J) Then
Print I; "="; J; "+"; I - J
Exit Sub
End If
Next J
End Sub
Function SS(ByVal D As Integer) As Boolean
SS = True
For K = 2 To D - 1
If D Mod K = 0 Then SS = False
Next K
End Function
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询