资 源 简 介
switch (aa) { case "香港": float a; a = float.Parse(textBox1.Text); // textBox1.Text = a.ToString(); if (a <= 1) { label3.Text = "30"; } else if (a > 1) { float b = a % 1; float c = a - b; if (b <= 0.5) { double res; if (b == 0) { res = (c - 1) * 25 30; label3.Text = res.ToString(); } else { res = (c - 1) * 25 30 12.5; label3.Text = res.ToString(); } } else if (b > 0.5) { double res; res = c * 25 30; label3.Text = res.ToString(); } } break;