source:
orxonox.OLD/branches/network/src/lib/script_engine/luna/account.lua
@
8301
Last change on this file since 8301 was 8061, checked in by bensch, 18 years ago | |
---|---|
|
|
File size: 227 bytes |
Line | |
---|---|
1 | -- |
2 | -- Luna Account example |
3 | -- |
4 | |
5 | print("testoutput from lua") |
6 | local a = Account{balance=100} |
7 | a:withdraw(25.00) |
8 | a:deposit(50.00) |
9 | print("Account balance = $"..a:balance()) |
10 | |
11 | local e = Euclid() |
12 | print("Euclid gcd = "..e:gcd(10000,2)) |
Note: See TracBrowser
for help on using the repository browser.