Advertisement
Spocoman

04. Password Guess

Sep 16th, 2024
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.22 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var pass string
  6.     fmt.Scanln(&pass)
  7.    
  8.     if (pass == "s3cr3t!P@ssw0rd") {
  9.         fmt.Println("Welcome")
  10.     } else {
  11.         fmt.Println("Wrong password!")
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement