samplemodule.nut 130 B

123456789
  1. PI <- 3.1415;
  2. function RectArea(w, h) {
  3. return w * h;
  4. }
  5. function CircleArea(radius) {
  6. return PI * (radius * radius);
  7. }