vig/examples/hello.v

48 lines
462 B
V

const (
Cock = 1
Ball = 2 + 3
Deals = 3
Businesses = 4
)
fn main(a int) int {
1 + 2 + 3 + 4
1 + 1 * 1
3 / (51 + 2)
mut a := 1+2
a = 2
if a {
println(30)
} else {
println(50)
}
a && b
a || b
loop {}
loop {
println('Ballse')
}
loop a > 2 {}
loop a > 2 {
println('skirts')
}
cock_and_ball_torture('cbt', 1, 2, 3)
return 23
//p := Point{
// x: 10
// y: 20
//}
//println(p.x)
}
//struct Point {
// x int
// y int
//}