This commit is contained in:
Scarlett
2025-04-15 14:46:00 -04:00
parent 8057060f26
commit c091927fe7
34 changed files with 730 additions and 0 deletions

View File

@ -0,0 +1,14 @@
type string2int: string -> integer
function entry : string2int
entry(arg) := {
[ integer: i ; integer: sum ]
sum := 0;
i := 0 ;
while (i < 10) {
sum := sum + i;
i := i + 1;
}
return 0;
}