code wiki / (root) / abb_t2.nx

abb_t2.nx source

↩ module page · 12 lines · 313 B

1// abb_t2.nx -- Calculates and prints the product of 42 and 101 followed by a newline. 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}