let a = prompt('请输入纸张厚度');let b = prompt('请输入物体高度');let c = 0 ;function d (a,b){while ( a < b ){a = a * 2;c = c + 1 ;if(a > b ){console.log(c);}}}d(a,b);
900字范文,内容丰富有趣,生活中的好帮手!
时间:2019-03-29 17:12:43
let a = prompt('请输入纸张厚度');let b = prompt('请输入物体高度');let c = 0 ;function d (a,b){while ( a < b ){a = a * 2;c = c + 1 ;if(a > b ){console.log(c);}}}d(a,b);