var x = 0, n = 0;
while (x<10) {
    x++;
    n += x;
}
console.log(n);//55

 

相关文章: