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