0 votes
1 view
in R Programming by (5k points)

I was wondering about how to write do-while-style loop?

you can use repeat{} and check conditions wherever using if() and exit the loop with the "break" control word.

I am not sure what it exactly means. Can someone please elaborate if you understand it and/or if you have a different solution?

1 Answer

0 votes
by (24.7k points)
edited by

You can use the following function to implement a do-while style loop:







repeat( { expressions}; if (! end_cond_expr ) {break} )

If you want to explore more in R programming then watch this R programming tutorial for beginner:

Related questions

0 votes
1 answer
asked Sep 23 in Python by Sammy (40.4k points)
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !