5
6
7
8
count++;
}
}
if(count != 0){
document.getElementById("total").style.backgroundColor = "#F79646";
document.getElementById("total").innerHTML = "Total Amount: " + total+"$";
}else{
document.getElementById("total").style.backgroundColor = "white";
document.getElementById("total").innerHTML = "";
document.getElementById("ans").style.backgroundColor = "white";
1
2
3
4
5
}