Some updates to Schala source files
This commit is contained in:
parent
1d5e5aa735
commit
5c9180efc2
@ -1,12 +1,11 @@
|
|||||||
|
let c = 10
|
||||||
const c = 10
|
|
||||||
|
|
||||||
fn add(a, b) {
|
fn add(a, b) {
|
||||||
const c = a + b
|
let c = a + b
|
||||||
c
|
c
|
||||||
}
|
}
|
||||||
|
|
||||||
var b = 20
|
let mut b = 20
|
||||||
|
|
||||||
println(add(1,2))
|
println(add(1,2))
|
||||||
println(c + b)
|
println(c + b)
|
@ -1,10 +1,15 @@
|
|||||||
fn main() {
|
fn main() {
|
||||||
const a = 10
|
let a = 10
|
||||||
const b = 20
|
let b = 20
|
||||||
a + b
|
a + b
|
||||||
}
|
}
|
||||||
|
|
||||||
//foo
|
//this is a one-line comment
|
||||||
|
|
||||||
|
/* this is
|
||||||
|
a multiline
|
||||||
|
comment
|
||||||
|
*/
|
||||||
|
|
||||||
print(main())
|
print(main())
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ fn sua(x): Int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//const a = getline()
|
//let a = getline()
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if a == "true" {
|
if a == "true" {
|
||||||
|
Loading…
Reference in New Issue
Block a user