rhino
0
Q:

r while loop

# Basic syntax:
while (condition_is_true) {
  code to be repeated
}

# Example usage:
i = 1
while (i < 5) {	# True while i is less than 5
  print(i)
  i = i + 1		# Increment i each iteration
}

# Returns:
[1] 1
[1] 2
[1] 3
[1] 4
1
while (test_expression)
{
statement
}
1

New to Communities?

Join the community