// ��(sh��)���Α�
// 1.�S�C����һ��1~10 ������(sh��) ��Ҫ�õ� Math.random() ������������0��1��
// 2.��Ҫһֱ�µ����_��ֹ��������Ҫһֱѭ�h(hu��n)��
// 3.while ѭ�h(hu��n)������
var num = Math.ceil(Math.random()*10)
while(true){
var num2 = prompt("�������Ոݔ��1-10֮�g��һ����(sh��)")
if(num2 > num){
alert("���ֵ����")
}
if(num2 < num){
alert("���ֵС��")
}
if(num2 == num){
alert("��ϲ����������")
break
}
}
�Г��������О�����µķ���؟����
��վ�Йౣ����h���Р��h�uՓ��
���c���uՓ���������ѽ���x������
�����l����