def main(): int {
let base: int = 40;
let increment: int = 2;
return base + increment;
}عرف الرئيسية(): عدد {
دع الأساس: عدد = 40;
دع الزيادة: عدد = 2;
أرجع الأساس + الزيادة;
}
Run it
With the interpreter, without compiling:
./build/sultanc run examples/en/basics/arithmetic.snOr compile it to an executable:
./build/sultanc examples/en/basics/arithmetic.sn -o build/example && ./build/example