Advertisement
Spocoman

10. Invalid Number

Sep 18th, 2024
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.17 KB | None | 0 0
  1. package main
  2. import "fmt"
  3.  
  4. func main() {
  5.     var num int
  6.     fmt.Scanln(&num)
  7.    
  8.     if (num < 100 && num != 0 || num > 200 ) {
  9.         fmt.Println("invalid")
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement