Cで書くとこうなります。
if (x > 50)
{
//Already wrote this
}
else if((x < 50) && (x > 0))
{
if (a < 0.125y)
{return 0;}
else if (z >= 50)
{return 50;}
else
{return x;}
}
else
{
return 0;
}
大量の iif ステートメントをネストしようとしましたが、非常に乱雑になり、読めなくなりました。より効率的な方法はありますか?
どんな助けでも素晴らしいでしょう。ありがとう!