saving . . . saved Some problem on the execution of the statement has been deleted. Some problem on the execution of the statement has been hidden .
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 02-05-20, 12:42 p.m. sumankr545

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")
}
02-05-20, 6:20 p.m. vijay.j@xavierengg.com


Log-in to answer to this question.