File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -163,28 +163,27 @@ Procedures are reusable blocks that don’t return a value. Functions return a v
163163** Procedure example**
164164
165165```
166- DEF PROC Greet (NAME$)
166+ DEF PROCGreet (NAME$)
167167 PRINT "Hello, "; NAME$
168168ENDPROC
169169
170- PROC Greet ("Ada")
171- PROC Greet ("Grace")
170+ PROCGreet ("Ada")
171+ PROCGreet ("Grace")
172172```
173173
174174** Function example**
175175
176176```
177- DEF FN Add (A, B)
177+ DEF FNAdd (A, B)
178178 = A + B
179179
180- PRINT "2 + 3 = "; FN Add (2, 3)
180+ PRINT "2 + 3 = "; FNAdd (2, 3)
181181```
182182
183183** Notes**
184184
185- - Call a procedure with ` PROC Name(...) ` .
186- - Call a function with ` FN Name(...) ` . The line starting with ` = ` returns the value.
187- - Prefer ` PROC ` /` FN ` over older styles like ` GOTO ` /` GOSUB ` .
185+ - Call a procedure with ` PROCName(...) ` .
186+ - Call a function with ` FNName(...) ` . The line starting with ` = ` returns the value.
188187
189188---
190189
You can’t perform that action at this time.
0 commit comments