2016-12-25 15:50:41 -08:00
|
|
|
|
2017-01-09 20:33:08 -08:00
|
|
|
fn add(a, b) {
|
2016-12-29 15:53:48 -08:00
|
|
|
a + b
|
2017-01-09 20:33:08 -08:00
|
|
|
}
|
2016-12-29 15:53:48 -08:00
|
|
|
|
2017-01-09 20:33:08 -08:00
|
|
|
fn subtract(a, b) {
|
2016-12-29 15:53:48 -08:00
|
|
|
a - b
|
2017-01-09 20:33:08 -08:00
|
|
|
}
|
2016-12-25 15:50:41 -08:00
|
|
|
|
2017-01-09 20:33:08 -08:00
|
|
|
fn main() {
|
2016-12-29 15:53:48 -08:00
|
|
|
first_value = add(20, 20)
|
|
|
|
second_value = subtract(700, 650)
|
|
|
|
first_value + second_value
|
2017-01-09 20:33:08 -08:00
|
|
|
}
|
2016-12-29 15:53:48 -08:00
|
|
|
|
|
|
|
main()
|
|
|
|
|