我们有 4 个区域:a
b
c
d
我们想把这些数字放在这些区域中。
如何仅使用 switch 语句来做到这一点:
the number divisible by 10 and divisible by 7 ın region a
the number divisible by 10 but not divisible by 7 ın region b
the number not divisible by 10 but divisible by 7 ın region c
the number not divisible by 10 and divisible by 7 ın region d
例如,如果:
input 770 out put is a
input 200 output b
input 154 output c