課程
/后端開發(fā)
/C
/C語言入門
隨機產(chǎn)生10個100以內(nèi)的整數(shù)
2016-11-29
源自:C語言入門
正在回答
for(var i=1;i<=10;i++){
document.write(Math.round(Math.random()*100));
}//隨機產(chǎn)生10個100以內(nèi)的整數(shù)
do{
var a=Math.round(Math.random()*100);
}while(a<10)
document.write(a);//取10-100的隨機整數(shù)
lovely岑汐
舉報
C語言入門視頻教程,帶你進入編程世界的必修課-C語言
3 回答100以內(nèi)的整數(shù)為甚不包括負整數(shù)?
6 回答100以內(nèi)所有整數(shù)之和
1 回答while循環(huán) 100以內(nèi)整數(shù)的和,軟件是怎么知道,是100以內(nèi)整數(shù)的?為什么不是100以內(nèi)的所有數(shù)?
3 回答計算10以內(nèi)的整數(shù)之和
3 回答10以內(nèi)的整數(shù)之和,求幫忙!
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2017-01-16
for(var i=1;i<=10;i++){
document.write(Math.round(Math.random()*100));
}//隨機產(chǎn)生10個100以內(nèi)的整數(shù)
2017-01-16
do{
var a=Math.round(Math.random()*100);
}while(a<10)
document.write(a);//取10-100的隨機整數(shù)