Is there a way I can find all the values between certain parameter such as (1,10) that satisfy a+b = c+d while a,b,c, and d are not equal to each other.
var a;
var b;
var c;
var d;
function findValues (lowerbound, upperbound){
if (a+b = c+d && a != b != c != d) {
//some code
return(values)
}
}
So if I insert 1 into the lower bound and ten into the upper bound it will return all values that meat the conditions in a sorted fashion.
Aucun commentaire:
Enregistrer un commentaire