-
카테고리
-
해결 여부
해결됨
영상 보기전에 미리 한번 해봤습니다.
20.10.10 10:32 작성 조회수 79
2
var x = Math.floor(Math.random() * 9) + 1;
var y = Math.floor(Math.random() * 9) + 1;
var q = x * y;
console.log(x + "*" + y);
while (true) {
var a = prompt(x +"*" +y);
if (Number(a) === q) {
console.log(Number(a));
alert("딩동댕");
break;
}
else {
alert("공부해라!");
}
}
답변을 작성해보세요.
0
답변 1