while求和(1到100)

    var total = 0;
    var i = 1;
    while(i < 101){
        total += i;
        i++;
    }
    console.log(total)

  

猜你喜欢

转载自www.cnblogs.com/ly-qingqiu/p/12156105.html