亚洲喷奶水中文字幕电影,日本aⅴ高清一区二区三区,欧美亚洲日本国产,欧美日韩亚洲中文字幕

<legend id="flx4p"><abbr id="flx4p"><thead id="flx4p"></thead></abbr></legend>

<mark id="flx4p"><thead id="flx4p"></thead></mark>

      我要投稿 投訴建議

      一道淘汰85%面試者的百度開發(fā)者面試題

      時間:2022-08-03 04:35:03 面試試題 我要投稿
      • 相關推薦

      一道淘汰85%面試者的百度開發(fā)者面試題

        /**

      一道淘汰85%面試者的百度開發(fā)者面試題

        * 依序遍歷0到100閉區(qū)間內所有的正整數,

        * 如果該數字能被3整除,則輸出該數字及‘*’標記;

        * 如果該數字能被5整除,則輸出該數字及‘#’標記;

        * 如果該數字既能被3整除又能被5整除,則輸出該數字及‘*#’標記。

        */

        public class Print {

        public static void main(String[] args){

        new Print().prints();

        }

        private void prints(){

        for(int i = 1;i <= 100;i++){

        String txt = "";

        int flag = 0;

        if (op3(i)){

        flag += 1;

        }

        if (op5(i)){

        flag += 2;

        }

        switch (flag){

        case 1:txt = "*";break;

        case 2:txt = "#";break;

        case 3:txt = i+"#";break;

        }

        System.out.println("當前數字:" + i + "---->" + txt);

        }

        }

        private boolean op3(int i){

        if (i % 3 == 0) {

        return true;

        }

        return false;

        }

        private boolean op5(int i) {

        if (i % 5 == 0) {

        return true;

        }

        return false;

        }

        }

      http://www.jzcjspjx.com/

      【一道淘汰85%面試者的百度開發(fā)者面試題】相關文章:

      導致HR快速淘汰面試者的問題09-26

      百度php面試題目09-25

      解析百度HTML5開發(fā)面試題08-05

      跳槽求職者常見面試題09-21

      獵頭公司:九大淘汰不合格面試者招聘技巧08-17

      最讓求職者反感的面試題目有哪些08-24

      大企業(yè)面試題目古怪考倒求職者08-21

      創(chuàng)業(yè)公司和求職者都應看的面試題08-21

      全面的了解求職者的面試題目是哪些08-21

      百度面試技巧09-25