<script>
//计算两个数的和
function gethe(a,b){
console.log(a + b);
}
gethe(1,2);
//计算任意两个数之间的数的和
function gethes(c,d){
var he = 0;
for(var i = c;i<=d;i++){
var he=he+i;
}
console.log(he);
}
gethes(1,100);
</script>