RosettaCodeData/Task/Loops-Continue/R/loops-continue.r

11 lines
98 B
R

for(i in 1:10)
{
cat(i)
if(i %% 5 == 0)
{
cat("\n")
next
}
cat(", ")
}