function calc(n) {
let result= 1;
for (let i=1; i<=n; i++) {
result = result * i;
}
return result;
}
function multiTable() {
for (let i=1; i<=9; i++) {
let s = '';
for (let j=1; j<=i; j++) {
s += i + '*' + j + '=' + i*j+ ' ';
// console.log(i + '*' + j + '=' + i*j+ ' ');
}
console.log(s+ '\n');
}
}
// console.log(calc(2));
// console.log(calc(4));
// multiTable()
let s = 'hello';
let n = 3;
let bt = true;
let bf = false;
let x;
x = 100;
console.log(s, n, bt, bf);
let score = 60;
if (score >= 90) {
s = '优秀';
} else if (score >= 80) {
s = '良';
} else if (score >= 70) {
s = '中'
} else if (score >= 60) {
s = '差'
} else {
s = '不及格'
}
console.log(s);
let i=1;
while(i<=5) {
console.log(i);
i= i +1;
}
console