public class Test02 {
 public static void main(String[] args) {
  //long 长整数型
  long cash = 100000000000L;
  //整数变量,计算器
  int count = 0;
  //while语句
  while (cash > 1) {
   cash = cash / 2;
   count = count + 1;
  }
  System.out.println("count = " + count);
  //float 小数类型         f代表浮点型
  float start = 1.0f;
  
  int i = 1;
  
  //当i等于小于365天的时候
  while (i <= 365) {
   //start乘以1.01
   start = start * 1.01f;
   //i 每次都要加一
   i = i+ 1;
  }
  System.out.println( start);
 }
}
 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。