SOURCE

function printsxh()
{
    for(var num = 100; num <1000; num++)
    {
        var unitsDigit = num % 10;
        var tensDigit = parseInt((num / 10) % 10);
        var hundredsDIgit = parseInt(num / 100);
        if(num == Math.pow(unitsDigit,3)+Math.pow(tensDigit,3)+Math.pow(hundredsDIgit,3))
        {
            document.write(num + "<br/>");
        }
    }
}
printsxh();
console 命令行工具 X clear

                    
>
console