#45445: cpp ans


1121232@stu.wghs.tp.edu.tw (Ian911436)


就用if else
        if (b >= 40)
            r = a + (Y / 1000) * 100;
        else if (b >= 30)
            r = a + (Y / 1000) * 50;
        else
            r = a + (Y / 1000) * 10;