partly fixed memory leak issue

This commit is contained in:
Add00
2023-08-13 22:27:54 -04:00
parent 0c005d0af2
commit a0acd27be1
3 changed files with 88 additions and 43 deletions

View File

@@ -42,12 +42,12 @@ fn square(size: int) {
}
}
for (;;) {
while (true) {
output.write("Enter:\n0\tfor circle\n1\tfor triangle\n2\tfor square\n> ");
var result: any = input.read(int);
if (result == 0) {
circle(5, 5, 5);
circle(2, 5, 5);
}
else if (result == 1) {
triangle(5);