Advertisement
Spocoman

06. Number in Range

Sep 18th, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.21 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 <= 100 && num != 0) {
  9.         fmt.Println("Yes");
  10.     } else {
  11.         fmt.Println("No");
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement