basic for loop + examples -> era3
This commit is contained in:
parent
dd7af341a3
commit
0bc8b2ef55
24 changed files with 222 additions and 201 deletions
|
|
@ -1,13 +1,11 @@
|
|||
|
||||
write("Hello world!")
|
||||
println("Hello world!")
|
||||
|
||||
a := 1 + 2
|
||||
|
||||
write(a)
|
||||
|
||||
println(a)
|
||||
|
||||
if a > 2 {
|
||||
write("Hooray!! a is greater than 2!!!!")
|
||||
println("Hooray!! a is greater than 2!!!!")
|
||||
} else {
|
||||
write("oh nooo!!! a is less than or equal to 2!!!!!!!!!!")
|
||||
println("oh nooo!!! a is less than or equal to 2!!!!!!!!!!")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue