久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      c語(yǔ)言如何判斷整數(shù)是幾位數(shù)

      c語(yǔ)言如何判斷整數(shù)是幾位數(shù)

      實(shí)現(xiàn)代碼:

      #include <stdio.h> int main() {     long long a;     int count=0;       printf("請(qǐng)輸入一個(gè)整數(shù):");     scanf("%lld",&a);       while(a!=0)     {               a/=10;         count++;     }       printf("輸入的數(shù)字是%d位數(shù)。",count); }

      其中l(wèi)ong long為長(zhǎng)整型lld為該類型的輸入方式,在該程序中count為計(jì)數(shù)器,記錄輸入數(shù)字的位數(shù)。

      推薦教程:c語(yǔ)言教程

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)