console
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>
<body>
<script>
var m="男",h=182;
if(m="男"){
if(h>=180){
document.write("此男身高高于180");
}
else{
document.write("此男身高低于180");
}
}else{
if(h>=180){
document.write("此女身高高于180");
}
else{
document.write("此女身高低于180");
}
}
document.write("<br/>");
function find(){
var a,b,c;
for(var i=100;i<1000;i++){
a=i%10;
b=parseInt((i/10)%10);
c=parseInt(i/100);
if(i==a*a*a+b*b*b+c*c*c){
document.write(i+"是水仙花数<br/>");
}
}
}
find();
function pd(a){
a=a+"";
if(parseInt(a)==parseFloat(a)){
a=a+"不是小数";
return a;
}
else{
a=a+"是小数";
return a;
}
}
document.write(pd(15.6));
</script>
</body>
</html>