Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rzuckerm committed Jan 12, 2025
1 parent 06def4f commit d851a05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions archive/c/cobol/baklava.cbl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
PROCEDURE DIVISION.
PERFORM VARYING NUM FROM 0 BY 1 UNTIL NUM > 20
COMPUTE NUM-SPACES = FUNCTION ABS(NUM - 10)
COMPUTE NUM-STARS = 21 - 2 * NUM-SPACES
COMPUTE NUM-STARS = 20 - 2 * NUM-SPACES

* Display NUM-SPACES " "
MOVE " " TO REPEAT-CHAR
Expand All @@ -26,7 +26,7 @@
PERFORM DISPLAY-REPEAT-STRING

* Display newline
DISPLAY ""
DISPLAY "*"
END-PERFORM
STOP RUN.

Expand Down

0 comments on commit d851a05

Please sign in to comment.