• + 0 comments

    In JavaScript,

    var result=0;
        for(var i=1;i<=n;i++)
        {
            for(var j=1;j<=n;j++)
                {
                    if(i*j<=p)
                    {
                        result = result+1;
                    }
                }
        }
        return(result)
    		
    

    something is not working here.