Автор - george959558
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<center>
<p id = "text"></p>
<input type="text" id = "answer">
<button onclick="alert(parseInt(document.getElementById('answer').value) == (a_value + b_value)?'Верно':'Неверно');">Отправить</button>
</body>
<script>
var a_value = parseInt(Math.random() * (100 - 1) + 1);
var b_value = parseInt(Math.random() * (100 - 1) + 1);
document.getElementById("text").textContent = a_value + " + " + b_value + " = ..."
</script>
</html>