10 lines
146 B
Mojo
10 lines
146 B
Mojo
def total(readings: Int) -> Int:
|
|
var s = 0
|
|
for r in readings:
|
|
s += r
|
|
return s
|
|
|
|
|
|
def main():
|
|
print("sum:", total(3, 4, 5))
|