Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
22
Task/String-comparison/V-(Vlang)/string-comparison.v
Normal file
22
Task/String-comparison/V-(Vlang)/string-comparison.v
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
fn main() {
|
||||
c := "cat"
|
||||
d := "dog"
|
||||
if c == d {
|
||||
println('$c is bytewise identical to $d')
|
||||
}
|
||||
if c != d {
|
||||
println('$c is bytewise different from $d')
|
||||
}
|
||||
if c > d {
|
||||
println('$c is lexically bytewise greater than $d')
|
||||
}
|
||||
if c < d {
|
||||
println('$c is lexically bytewise less than $d')
|
||||
}
|
||||
if c >= d {
|
||||
println('$c is lexically bytewise greater than or equal to $d')
|
||||
}
|
||||
if c <= d {
|
||||
println('$c is lexically bytewise less than or equal to $d')
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue