adplus-dvertising
frame-decoration

Question

Which of the following R syntax is correct for while loop?

a.

while ( statement1 ) statement2

b.

while ( statement1 ) else statement2

c.

while ( statement1 ) do statement2

d.

while ( statement2 ) doelse statement2

Posted under R Programming

Answer: (a).while ( statement1 ) statement2

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following R syntax is correct for while loop?