Some problem on the execution of the statement
Title
Question
I am trying to execute this statement. In this, I have to get one output i.e. India won the first ODI but I got two times instead of one. please provide me a useful solution
if(inScore[1]> ausScore[1])(
print("India won the first ODI")
)
R Conditional-Statements 03-04 min 20-30 sec
Answers:
The body of the if loop has to be enclosed in curly braces
if(inScore[1] > ausScore[1]) {
print("India won the first ODI")
}
Login to add comment