Skip to content

Instantly share code, notes, and snippets.

@schultyy
Created February 17, 2015 12:53
Show Gist options
  • Save schultyy/7eac9136fd4c411181fb to your computer and use it in GitHub Desktop.
Save schultyy/7eac9136fd4c411181fb to your computer and use it in GitHub Desktop.
eingabe =""
while eingabe != "stop" do
eingabe = gets.chomp
end
@schultyy
Copy link
Author

Hier weisst du nicht, wie oft die Schleife durchlaufen wird, weil das davon abhängt, was die Benutzerin eingibt.
Das ist jetzt sehr simpel, aber es zeigt, wie eine While-Schleife generell funktioniert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment