Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/User-input-Text/V-(Vlang)/user-input-text-1.v
Normal file
10
Task/User-input-Text/V-(Vlang)/user-input-text-1.v
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import os
|
||||
|
||||
fn main() {
|
||||
s := os.input('Enter string').int()
|
||||
if s == 75000 {
|
||||
println('good')
|
||||
} else {
|
||||
println('bad')
|
||||
}
|
||||
}
|
||||
11
Task/User-input-Text/V-(Vlang)/user-input-text-2.v
Normal file
11
Task/User-input-Text/V-(Vlang)/user-input-text-2.v
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import os
|
||||
import strconv
|
||||
|
||||
fn main() {
|
||||
s := strconv.atoi(os.input('Enter string')) ?
|
||||
if s == 75000 {
|
||||
println('good')
|
||||
} else {
|
||||
println('bad $s')
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue