vig/examples/hello.v

36 lines
347 B
Coq
Raw Normal View History

2019-08-24 19:56:58 +00:00
const (
Cock = 1
Ball = 2 + 3
Deals = 3
Businesses = 4
)
2019-08-24 14:07:23 +00:00
fn main(a int) int {
2019-08-24 14:15:41 +00:00
1 + 2 + 3 + 4
1 + 1 * 1
3 / (51 + 2)
mut a := 1+2
a = 2
2019-08-25 16:02:40 +00:00
if a {
println(30)
} else {
println(50)
}
2019-08-25 16:21:22 +00:00
a && b
a || b
2019-08-25 20:14:25 +00:00
loop {}
loop {
println('Ballse')
}
loop a > 2 {}
loop a > 2 {
println('skirts')
}
2019-08-26 01:41:25 +00:00
cock_and_ball_torture('cbt', 1, 2, 3)
2019-08-24 14:07:23 +00:00
}