break and continue

This commit is contained in:
2025-07-02 13:56:30 +02:00
parent a0bee3f5ca
commit c53a7cd631
7 changed files with 48 additions and 16 deletions

View File

@@ -17,5 +17,5 @@ func main[] : I64
n = n + i
if num_divisors(n) > 500
print_i64(n)
return 0
break
i = i + 1

View File

@@ -7,5 +7,5 @@ func main[] : I64
found = found + 1
if found == 10001
print_i64(i)
return 0
break
i = i + 1

View File

@@ -7,7 +7,7 @@ func main[] : I64
if guess == answer
print("You win!")
return 0
break
else if guess < answer
print("Too low!")
else