let MTC = window.prompt("Enter marks for MTC:");
let ENG = window.prompt("Enter marks for ENG:");
let SST = window.prompt("Enter marks for SST:");
let SCI = window.prompt("Enter marks for SCI:");
let marks = [MTC, ENG, SST, SCI];
let total = 0;
for(let sum = 0; sum < 4; sum++){
total += marks[sum];
}
console.log(total);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)