diff options
Diffstat (limited to 'test.lua')
-rw-r--r-- | test.lua | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test.lua b/test.lua new file mode 100644 index 00000000..c0a2eb42 --- /dev/null +++ b/test.lua | |||
@@ -0,0 +1,15 @@ | |||
1 | $debug | ||
2 | |||
3 | |||
4 | function somaP (x1,y1,x2,y2) | ||
5 | return x1+x2, y1+y2 | ||
6 | end | ||
7 | |||
8 | function norma (x,y) | ||
9 | return x*x+y*y | ||
10 | end | ||
11 | |||
12 | function retorno_multiplo () | ||
13 | print (norma(somaP(2,3,4,5))) | ||
14 | end | ||
15 | |||