返回列表 發帖
  1. #include<iostream>
  2. #include<cstdlib>
  3. #include<math.h>
  4. using namespace std;
  5. int main(void){
  6.       int s = 3500 ;
  7.       int d = 0;
  8.       while(s > 3){
  9.               s = s / 2;
  10.               d = d +1 ;
  11.               }
  12.               cout << d ;
  13.               
  14.       system("pause");
  15.       return 0 ;
  16.       }
複製代碼

TOP

返回列表