Java script
[Java] 많은 수 곱하기 값 구하기
EmilyP
2021. 3. 24. 11:05
function box (width,height){
return width*height;
}
box1 = box(10,10);
box2 = box(9,9);
box3 = box(8,8);
box4 = box(7,7);
box5 = box(6,6);
box6 = box(5,5);
box7 = box(4,4);
box8 = box(3,3);
box9 = box(2,2);
box10 = box(1,1);
console.log(box1);
console.log(box2);
console.log(box3);
console.log(box10);
height = 10;
width = 10;
//console.log(height*width); //100개를 구해야한다면 위처럼 변수를 넣어야
</script>
</head>
<body>
</body>
</html>