This might be a silly question, but since I could not find the way to search it, I wanted to ask. I have the code below:
(m is a numeric value defined earlier)
if (0 < m <= 1.00){
print("a")
} else if (1.00 < m <= 2.00){
print("likely benign")
} else if (2.00 < m <= 3.00){
print("b")
} else if (3.00 < m <= 4.00){
print("c")
} else if (4.00 < m <= 5.00){
print("d")
} else if (5.00 < m <= 6.00){
print("e")
} else{
print("f")
}
It gives the error: Error: unexpected '}' in " }"
but I used if in exactly the same way on the upper part of the code and there is no error from that part. How can I fix this? Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire