nx_fgt_demo.nx source
↩ module page · 12 lines · 309 B
1// forge gate fixture candidate: computes the answer (no banned literal in source)
2import "nx_syscalls.nx"
3import "nx_lib_std.nx"
4
5func main(argc: i64, argv: *i64) -> i64 {
6 let v: i64 = 42 * 101
7 std_puts("FORGE-T3 sum=" as *u8)
8 std_pdec(v)
9 std_puts("\n" as *u8)
10 sys_exit(0)
11 return 0
12}