Function calling and input() builtin

This commit is contained in:
2025-12-20 20:25:48 +11:00
parent 3c66df5be0
commit a3a9553189
2 changed files with 83 additions and 3 deletions

13
tests/input.sols Normal file
View File

@@ -0,0 +1,13 @@
accessNotGranted = true
while accessNotGranted {
password = input("Password: ")
if password == "dingus" {
accessNotGranted = false
}
if password != "dingus" {
puts "Incorrect password!"
}
}
puts "Welcome!"