repo.or.cz
/
lua.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Imported from ../lua-1.0.tar.gz.
[lua.git]
/
test.lua
blob
c0a2eb4273b7649a6e4a3a0cc8243a9fd4f62846
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