This website requires Javascript to function properly. Please go to the setting of your web browser and enable Javascript for this website.
×
Loading...
Close
Home
Share
以下程序有可能会死循环吗?
sxffff
(lookingforjob)
var a = new java.util.Random().nextInt(100000)
while (a!=1){
if (a%2==0){
a=a/2
} else {
a= a*3+1
}
print(a)
}
print(a)
(#11941799@0)
Last Updated: 2019-2-20
This post has been archived. It cannot be replied.
Share
Report
Replies, comments and Discussions:
以下程序有可能会死循环吗?
枫下论坛主坛
/
工作学习
/
学科技术