1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/examples/password/password.v
2022-08-23 18:17:38 +03:00

15 lines
333 B
V

module main
import os
fn main() {
original_password := os.input_password('Enter your password : ')!
repeated_password := os.input_password('Confirm password : ')!
if original_password == repeated_password {
println('Password confirmed! You entered: $original_password .')
} else {
println('Passwords do not match .')
}
}