summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Elgarhy <anas.elgarhy.dev@gmail.com>2026-01-18 19:18:53 +0200
committerAnas Elgarhy <anas.elgarhy.dev@gmail.com>2026-01-18 19:39:28 +0200
commit90d8165c5b284650a8b03fca178d07eb1f87b59f (patch)
tree908473871d3a215a1adbe1f9a2239c15056401c4
parentfc4abb77ecab8fe3c497e13d7f7d6d8f832514b2 (diff)
docs(readme): fix input prompt example
-rw-r--r--README.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index 8a7629b..59dd122 100644
--- a/README.md
+++ b/README.md
@@ -351,7 +351,8 @@ Zen C supports a shorthand for prompting user input using the `?` prefix.
- Format specifiers are automatically inferred based on variable type.
```c
-var age = "How old are you? ";
+var age: int;
+? "How old are you? " (age);
println "You are {age} years old.";
```