Vidyalelo
Ruby Programming · Q57

Operators in Ruby

Programming · Ruby Programming · question 57

Q57

What is the output of the given code? counter=1 if counter<=5 puts (counter) counter=counter+1

A.
Syntax error
Answer
B.
1 2
C.
1
D.
None of the mentioned

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board