// Filename: lin_eq2.sg // Solving 2 linear equations with 2 unknowns var x1, x2; // x1 & x2 are variables unknown x1, x2; // x1 & x2 are unknowns equ x1 -> x1 + x2 = 4; // 1st linear equation equ x2 -> 3*x1 + x2 = 7; // 2nd linear equation begin main // Start of the function solve; // Solve the equations for the unknowns open "answer" write; // Open file “answer” to write file write x1, x2; // write x1 & x2 into answer close; // close the file End // End of the function