有没有人会编程的帮我编写一个简单的程序If the mark entered is between 90 and 100,grade “A” will be displayed;If the mark entered is between 80 and 89,grade B will be displayed;If the mark entered is between 70 and 79,grade C wil
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 21:59:17
有没有人会编程的帮我编写一个简单的程序If the mark entered is between 90 and 100,grade “A” will be displayed;If the mark entered is between 80 and 89,grade B will be displayed;If the mark entered is between 70 and 79,grade C wil
有没有人会编程的帮我编写一个简单的程序
If the mark entered is between 90 and 100,grade “A” will be displayed;
If the mark entered is between 80 and 89,grade B will be displayed;
If the mark entered is between 70 and 79,grade C will be displayed;
If the mark entered is between 60 and 69,grade D will be displayed;
If the mark entered is between 0 and 59,grade F will be displayed;
用Javascript帮忙设计
有没有人会编程的帮我编写一个简单的程序If the mark entered is between 90 and 100,grade “A” will be displayed;If the mark entered is between 80 and 89,grade B will be displayed;If the mark entered is between 70 and 79,grade C wil
if (entered <= 100 && entered >= 90) {
document.getElementById("result").innerHTML = 'A';
} else if (entered <= 89 && entered >= 80) {
document.getElementById("result").innerHTML = 'B';
} else if (entered <= 79 && entered >= 70) {
document.getElementById("result").innerHTML = 'C';
} else if (entered <= 69 && entered >= 60) {
document.getElementById("result").innerHTML = 'D';
} else if (entered <= 59 && entered >= 0) {
document.getElementById("result").innerHTML = 'F';
}