Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

Answer: a
Explanation: The while statement is very similar to the repeat statement.

Join The Discussion