arithmetic_expression_m.gravity 210 B

123456789101112
  1. #unittest {
  2. name: "Arithmetic expression (*,/,%) with multiple subnodes, testing operator execution order.";
  3. error: NONE;
  4. result: 9;
  5. };
  6. func main() {
  7. var a = 6;
  8. var b = 2;
  9. var c = 3;
  10. return a / b * c;
  11. }