标题:一道六年级算术题没算出来,不知是不是题目出错了(没用编程方法)
只看楼主
swlike
Rank: 1
等 级:新手上路
帖 子:5
专家分:5
注 册:2011-4-29
得分:0 
Dim i As Short = 1
        Do
            Dim j As Short = 1
            Do
                Dim money As Integer = 5 * i + 10 * i + 2 * j
                If money = 400 Then
                    MsgBox(i & "  " & j)
                ElseIf money > 400 Then
                    Exit Do

                End If
                j += 1
            Loop
            i += 1
        Loop
2011-05-01 09:03



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-331172-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.091349 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved