<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
function getsum(){
a=arguments.length
sum=1
for(i=0;i<=a-1;i++){
sum=sum*arguments[i]
}
return sum
}
console.log(getsum(1,2,3,4))
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
function getSeven(){
sum=0
for(i=0;i<=100;i++){
if(i%7==0){
document.write(i)
}
else{
if(10<=i<=99){
if(i/10==7||i%10==7){
document.write(i)
}
}
}
}
}
console.log(getSeven(1,2,3,4))
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<script>
function getsum(){
let a1=0, a2=0, a3=0, a4=1,sum=0
for(i=4;i<=20;i++){
if(a1>0){
a1-=1,a2+=1
}if(a2>0){
a2-=1,a3+=1
}if(a3>0){
a3-=1,a4+=1
}if(a4>0){
a1+=a4
}
}
return sum=a1+a2+a3+a4
}
document.write(getsum())
</script>
</body>
</html>