Skip to content

Commit 40a3f8b

Browse files
Update BASIC_BEGINNER.md
1 parent 90e24ba commit 40a3f8b

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

BASIC_BEGINNER.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff 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$
168168
ENDPROC
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

0 commit comments

Comments
 (0)