aboutsummaryrefslogtreecommitdiff
path: root/examples/learn/35-io.zc
diff options
context:
space:
mode:
authorGravatar zinc <zinc@downsta.ir> 2026-10-15 09:46:14 +0330
committerGravatar zinc <zinc@downsta.ir> 2026-10-15 09:46:14 +0330
commit903e57850e6678f85c5f26cecf6ec318564ae139 (patch)
tree19fb6944dc0fdcf4c54a1582c0cfb6573f93aa26 /examples/learn/35-io.zc
parentxref: baseline records the prover's writers of ft_ln (bin, kw_for), xub and x... (diff)
parentlsp: prefer the rt import fix when a library group wraps the same name (diff)
merge work/stdio: std.Io and one-level module completion
Diffstat (limited to 'examples/learn/35-io.zc')
-rw-r--r--examples/learn/35-io.zc7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/learn/35-io.zc b/examples/learn/35-io.zc
new file mode 100644
index 0000000..e370daa
--- /dev/null
+++ b/examples/learn/35-io.zc
@@ -0,0 +1,7 @@
+namespace;
+include std;
+fn main() {
+ std.Io.print("total: "); std.Io.put_n(6 * 7); std.Io.nl();
+ std.Io.print("ratio: "); std.Io.put_f(1.0 / 4.0); std.Io.nl();
+ std.Io.println("done");
+}