Is there a more succinct way of performing the same task below? Rounding down to nearest 1 or 5mod6

前端 未结 0 703
暗喜
暗喜 2021-01-18 02:30
var n = 27;

void main() {

  while  (n>=5)

    if ( (n) % 3==0 && (n) % 2==0 ){
      print(n-1);
      break;
    }
    else if ( (n) % 3==0 &&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题