Ruby - Loops and Iteration
What is the main difference between a
while loop and an until loop in Ruby?while loop and an until loop in Ruby?while loop behaviorwhile loop runs as long as its condition is true.until loop behavioruntil loop runs as long as its condition is false (it stops when condition becomes true).while runs while the condition is true; until runs while the condition is false -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions