if(a<b) {
return a;
} else{
return b;
}
Kwan
第 3 级
不需要新的变量
正在讨论
评论 (3)
- 受欢迎
- 新
- 旧
你必须先登录才能发表评论
pananle
30 七月 2021, 07:07
if(a<b) {
return a;
} else{
return b;
}
0
Gellert Varga
11 七月 2021, 11:52
This is very good, just make sure the code is clear. For example, look at the layouts below. The code is the same, just in a different format, with a clear layout.
0
LWWm
15 七月 2021, 02:38
Of course it looks clearer.However,it's just a specification to be complied with because ''{}" can help you better organize your code and make it easier to maintain for anyone else trying to figure it out.
0